LicenseInformation 클래스

정의

현재 앱의 라이선스 메타데이터에 대한 액세스를 제공합니다.

public ref class LicenseInformation sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class LicenseInformation final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class LicenseInformation
Public NotInheritable Class LicenseInformation
상속
Object Platform::Object IInspectable LicenseInformation
특성

Windows 요구 사항

디바이스 패밀리
Windows 10 (10.0.10240.0에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v1.0에서 도입되었습니다.)

설명

앱 평가판 버전의 경우 평가판이 만료되지 않은 한 IsActive 는 true를 반환합니다. 평가판 기간 동안 IsTrial은 true를 반환합니다. 고객이 앱의 전체 버전으로 업그레이드할 때 false를 반환합니다.

테스트하는 동안 CurrentAppSimulator 개체의 LicenseInformation 속성 또는 앱이 Microsoft Store를 통해 배포될 때 CurrentApp 개체의 LicenseInformation 속성을 통해 이 개체에 액세스합니다.

참고

CurrentApp 개체는 Microsoft Store에서 해당 데이터를 가져옵니다. 이 경우 Microsoft Store 개발자 계정이 있고 앱이 Microsoft Store에 게시되어야 합니다. Microsoft Store 개발자 계정이 없는 경우 CurrentAppSimulator를 사용하여 이 클래스의 함수를 테스트할 수 있습니다.

속성

ExpirationDate

시스템 클록을 기준으로 라이선스 만료 날짜 및 시간을 가져옵니다.

IsActive

라이선스가 활성 상태인지 여부를 나타내는 값을 가져옵니다.

IsTrial

라이선스가 평가판 라이선스인지 여부를 나타내는 값을 가져옵니다.

ProductLicenses

사용자가 현재 받을 수 있는 앱 내 제품에 대한 라이선스의 결합 목록을 가져옵니다.

이벤트

LicenseChanged

앱 라이선스의 상태 변경될 때 알림 이벤트를 발생합니다.

적용 대상

추가 정보