Condividi tramite


CortanaPermissionsManager.IsSupported Metodo

Definizione

Recupera se Cortana è supportato.

public:
 virtual bool IsSupported() = IsSupported;
bool IsSupported();
/// [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")]
bool IsSupported();
public bool IsSupported();
[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 bool IsSupported();
function isSupported()
Public Function IsSupported () As Boolean

Restituisce

Boolean

bool

true se Cortana è supportato. In caso contrario, false.

Attributi

Requisiti Windows

Funzionalità dell'app
cortanaPermissions

Commenti

La classe CortanaPermissionManager richiede l'aggiunta seguente al Package.appmanifest:

  • Per <il pacchetto>
    • xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
    • IgnorableNamespaces="rescap"
  • In <Funzionalità>
    • <rescap:capability name="cortanaPermissions"/>

Si applica a