Freigeben über


CortanaPermissionsManager.ArePermissionsGrantedAsync Methode

Definition

Überprüft asynchron, ob die angegebenen Berechtigungen erteilt werden.

public:
 virtual IAsyncOperation<bool> ^ ArePermissionsGrantedAsync(IIterable<CortanaPermission> ^ permissions) = ArePermissionsGrantedAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<bool> ArePermissionsGrantedAsync(IIterable<CortanaPermission> const& permissions);
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [Windows.Foundation.Metadata.Deprecated("ICortanaPermissionsManager is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 655360, "Windows.Foundation.UniversalApiContract")]
IAsyncOperation<bool> ArePermissionsGrantedAsync(IIterable<CortanaPermission> const& permissions);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<bool> ArePermissionsGrantedAsync(IEnumerable<CortanaPermission> permissions);
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Deprecated("ICortanaPermissionsManager is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 655360, "Windows.Foundation.UniversalApiContract")]
public IAsyncOperation<bool> ArePermissionsGrantedAsync(IEnumerable<CortanaPermission> permissions);
function arePermissionsGrantedAsync(permissions)
Public Function ArePermissionsGrantedAsync (permissions As IEnumerable(Of CortanaPermission)) As IAsyncOperation(Of Boolean)

Parameter

permissions

IIterable<CortanaPermission>

IEnumerable<CortanaPermission>

Die Sammlung von Berechtigungen von Interesse.

Gibt zurück

TRUE , wenn die Berechtigung erteilt wird. Andernfalls lautet der Wert false.

Attribute

Windows-Anforderungen

App-Funktionen
cortanaPermissions

Hinweise

Die CortanaPermissionManager-Klasse erfordert Folgendes, das package.appmanifest hinzugefügt werden muss:

  • Zum <Packen>
    • xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
    • IgnorableNamespaces="rescap"
  • Unter <Funktionen>
    • <rescap:capability name="cortanaPermissions"/>

Gilt für:

Weitere Informationen