Share via


DiagnosticInvoker.RunDiagnosticActionFromStringAsync(String) Method

Definition

Asynchronously runs the diagnostics invoker with the specified diagnostics context.

public:
 virtual IAsyncOperationWithProgress<DiagnosticActionResult ^, DiagnosticActionState> ^ RunDiagnosticActionFromStringAsync(Platform::String ^ context) = RunDiagnosticActionFromStringAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperationWithProgress<DiagnosticActionResult, DiagnosticActionState> RunDiagnosticActionFromStringAsync(winrt::hstring const& context);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperationWithProgress<DiagnosticActionResult,DiagnosticActionState> RunDiagnosticActionFromStringAsync(string context);
function runDiagnosticActionFromStringAsync(context)
Public Function RunDiagnosticActionFromStringAsync (context As String) As IAsyncOperationWithProgress(Of DiagnosticActionResult, DiagnosticActionState)

Parameters

context
String

Platform::String

winrt::hstring

A string containing the context for the diagnostics action.

Returns

Returns an async operation object that indicates when the action has completed. A DiagnosticActionState enum value is in the result.

Attributes

Windows requirements

Device family
Windows 10, version 1803 (introduced in 10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v6.0)

Remarks

Converts the context string to a JsonObject, then passes it in a call to RunDiagnosticActionAsync.

Applies to