Process.RunAndCaptureTextAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| RunAndCaptureTextAsync(ProcessStartInfo, CancellationToken) | |
|
RunAndCaptureTextAsync(String, IEnumerable |
RunAndCaptureTextAsync(ProcessStartInfo, CancellationToken)
- Source:
- Process.Scenarios.cs
[System.Runtime.Versioning.SupportedOSPlatform("maccatalyst")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
public static System.Threading.Tasks.Task RunAndCaptureTextAsync(System.Diagnostics.ProcessStartInfo startInfo, System.Threading.CancellationToken cancellationToken = default);
[]
[]
[]
static member RunAndCaptureTextAsync : System.Diagnostics.ProcessStartInfo * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Shared Function RunAndCaptureTextAsync (startInfo As ProcessStartInfo, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ProcessTextOutput)
Parameters
- startInfo
- ProcessStartInfo
- cancellationToken
- CancellationToken
Returns
- Attributes
Applies to
RunAndCaptureTextAsync(String, IEnumerable, CancellationToken)
- Source:
- Process.Scenarios.cs
[System.Runtime.Versioning.SupportedOSPlatform("maccatalyst")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
public static System.Threading.Tasks.Task RunAndCaptureTextAsync(string fileName, System.Collections.Generic.IEnumerable? arguments = default, System.Threading.CancellationToken cancellationToken = default);
[]
[]
[]
static member RunAndCaptureTextAsync : string * seq * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Shared Function RunAndCaptureTextAsync (fileName As String, Optional arguments As IEnumerable(Of String) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ProcessTextOutput)
Parameters
- fileName
- String
- arguments
- IEnumerable<String>
- cancellationToken
- CancellationToken
Returns
- Attributes