Delen via


AppDiagnosticInfo.RequestInfoForAppAsync Method

Definition

Overloads

RequestInfoForAppAsync()

Gets a collection of AppDiagnosticInfo objects for all running instances of this app.

RequestInfoForAppAsync(String)

Gets a collection of AppDiagnosticInfo objects for all instances of the specified app.

RequestInfoForAppAsync()

Gets a collection of AppDiagnosticInfo objects for all running instances of this app.

public:
 static IAsyncOperation<IVector<AppDiagnosticInfo ^> ^> ^ RequestInfoForAppAsync();
/// [Windows.Foundation.Metadata.DefaultOverload]
/// [Windows.Foundation.Metadata.Overload("RequestInfoForAppAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<IVector<AppDiagnosticInfo>> RequestInfoForAppAsync();
[Windows.Foundation.Metadata.DefaultOverload]
[Windows.Foundation.Metadata.Overload("RequestInfoForAppAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<IList<AppDiagnosticInfo>> RequestInfoForAppAsync();
function requestInfoForAppAsync()
Public Shared Function RequestInfoForAppAsync () As IAsyncOperation(Of IList(Of AppDiagnosticInfo))

Returns

A collection of AppDiagnosticInfo objects for all running instances of this app.

Attributes

Windows requirements

Device family
Windows 10 Fall Creators Update (introduced in 10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v5.0)

Remarks

When an app calls this method, it is calling about itself and there is no capability check.

Applies to

RequestInfoForAppAsync(String)

Gets a collection of AppDiagnosticInfo objects for all instances of the specified app.

public:
 static IAsyncOperation<IVector<AppDiagnosticInfo ^> ^> ^ RequestInfoForAppAsync(Platform::String ^ appUserModelId);
/// [Windows.Foundation.Metadata.Overload("RequestInfoForAppUserModelId")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<IVector<AppDiagnosticInfo>> RequestInfoForAppAsync(winrt::hstring const& appUserModelId);
[Windows.Foundation.Metadata.Overload("RequestInfoForAppUserModelId")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<IList<AppDiagnosticInfo>> RequestInfoForAppAsync(string appUserModelId);
function requestInfoForAppAsync(appUserModelId)
Public Shared Function RequestInfoForAppAsync (appUserModelId As String) As IAsyncOperation(Of IList(Of AppDiagnosticInfo))

Parameters

appUserModelId
String

Platform::String

winrt::hstring

The identifier of the app for which to get the AppDiagnosticInfo.

Returns

A collection of AppDiagnosticInfo objects for all instances of the app specified by appUserModelId.

Attributes

Windows requirements

Device family
Windows 10 Fall Creators Update (introduced in 10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v5.0)
App capabilities
appDiagnostics

Remarks

Calling this method will result in a capability check and a user prompt to authorize this action.

Applies to