AppDiagnosticInfo.RequestInfoForPackageAsync(String) Method

Definition

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

public:
 static IAsyncOperation<IVector<AppDiagnosticInfo ^> ^> ^ RequestInfoForPackageAsync(Platform::String ^ packageFamilyName);
 static IAsyncOperation<IVector<AppDiagnosticInfo>> RequestInfoForPackageAsync(winrt::hstring const & packageFamilyName);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<IList<AppDiagnosticInfo>> RequestInfoForPackageAsync(string packageFamilyName);
function requestInfoForPackageAsync(packageFamilyName)
Public Shared Function RequestInfoForPackageAsync (packageFamilyName As String) As IAsyncOperation(Of IList(Of AppDiagnosticInfo))

Parameters

packageFamilyName
String

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

Returns

IAsyncOperation<IList<AppDiagnosticInfo>>

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

Attributes

Windows 10 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

If you call this method for the current app package, there is no capability check. Calling the method for any other package requires user consent, which defaults to denied. Users can provide consent in the Settings app. An app can request consent programmatically by calling AppDiagnosticInfo.RequestAccessAsync.

Applies to