AppDiagnosticInfo.RequestInfoForPackageAsync(String) AppDiagnosticInfo.RequestInfoForPackageAsync(String) AppDiagnosticInfo.RequestInfoForPackageAsync(String) AppDiagnosticInfo.RequestInfoForPackageAsync(String) 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 packageFamilyName) const;
public static IAsyncOperation<IList<AppDiagnosticInfo>> RequestInfoForPackageAsync(String packageFamilyName)
Public Shared Function RequestInfoForPackageAsync(packageFamilyName As String) As IAsyncOperation<IList<AppDiagnosticInfo>>(Of IVector)
Windows.System.AppDiagnosticInfo.requestInfoForPackageAsync(packageFamilyName).done( /* Your success and error handlers */ );

Parameters

packageFamilyName
String String String

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

Returns

IAsyncOperation<IList<AppDiagnosticInfo>> IAsyncOperation<IList<AppDiagnosticInfo>> IAsyncOperation<IList<AppDiagnosticInfo>>

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

Additional features and requirements

Device family
Windows 10 Fall Creators Update (introduced v10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v5)
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.