CortanaPermissionsManager 클래스

정의

사용자에게 Cortana 권한 부여 설정에 대한 액세스를 제공합니다.

public ref class CortanaPermissionsManager sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class CortanaPermissionsManager final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Deprecated("CortanaPermissionsManager is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 655360, "Windows.Foundation.UniversalApiContract")]
class CortanaPermissionsManager final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class CortanaPermissionsManager
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Deprecated("CortanaPermissionsManager is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 655360, "Windows.Foundation.UniversalApiContract")]
public sealed class CortanaPermissionsManager
Public NotInheritable Class CortanaPermissionsManager
상속
Object Platform::Object IInspectable CortanaPermissionsManager
특성

Windows 요구 사항

디바이스 패밀리
Windows 10 Creators Update (10.0.15063.0에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v4.0에서 도입되었습니다.)
앱 기능
cortanaPermissions

설명

정적 클래스이므로 구성원에 액세스하기 위해 CortanaPermissionsManager 개체를 가져올 필요가 없습니다.

CortanaPermissionManager 클래스를 사용하려면 Package.appmanifest에 다음을 추가해야 합니다.

  • 패키지로 <>
    • xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
    • IgnorableNamespaces="rescap"
  • 기능에서 <>
    • <rescap:capability name="cortanaPermissions"/>

메서드

ArePermissionsGrantedAsync(IIterable<CortanaPermission>)

지정된 사용 권한이 부여되는지 여부를 비동기적으로 다시 처리합니다.

GetDefault()

현재 사용자의 Cortana 권한을 검색합니다.

GrantPermissionsAsync(IIterable<CortanaPermission>)

지정된 Cortana 권한 집합을 비동기적으로 부여합니다.

IsSupported()

Cortana가 지원되는지 여부를 검색합니다.

RevokePermissionsAsync(IIterable<CortanaPermission>)

지정된 Cortana 권한 집합을 비동기적으로 해지합니다.

적용 대상