RetailInfo 클래스

정의

하나의 메서드 IsDemoModeEnabled와 속성 하나를 지원하는 유틸리티 클래스 입니다. IsDemoModeEnabled를 호출하여 앱이 실행 중인 디바이스가 소매 데모 모드를 사용하도록 설정했는지 여부를 확인합니다.

public ref class RetailInfo abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.System.Profile.ProfileRetailInfoContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class RetailInfo final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.System.Profile.ProfileRetailInfoContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public static class RetailInfo
Public Class RetailInfo
상속
Object Platform::Object IInspectable RetailInfo
특성

Windows 요구 사항

디바이스 패밀리
Windows Desktop Extension SDK (10.0.10240.0에서 도입되었습니다.)
Windows Mobile Extension SDK (10.0.10240.0에서 도입되었습니다.)
Windows 10, version 2104 (10.0.20348.0에서 도입되었습니다.)
API contract
Windows.System.Profile.ProfileRetailInfoContract (v1.0에서 도입되었습니다.)

설명

RetailInfo.IsDemoModeEnabledtrue를 반환하는 경우 RetailInfo.Properties에서 사용 가능한 속성 집합을 가져올 수 있습니다. 이러한 속성에는 소매 설정에서 실행되는 미리 설치된 데모 앱에 유용한 특정 정보가 포함됩니다. 예를 들어 ManufacturerName, ScreenSize 등을 가져오고 소매 데모용 앱에 해당 정보를 표시할 수 있습니다. 반환되는 문자열은 일반적으로 UI에 포함하기에 적합합니다.

가능하면 이전 Windows.Phone.System.Profile.RetailMode API 대신 RetailInfo를 사용합니다. Windows.Phone.System.Profile.RetailMode는 Windows Phone만 사용할 수 있으며 디바이스별 속성의 "속성" 집합을 지원하지 않습니다.

속성

IsDemoModeEnabled

앱이 실행 중인 디바이스가 소매 데모 모드를 특별히 사용하도록 설정했는지 여부를 결정합니다.

Properties

사용 가능한 소매 데모 속성 집합과 해당 값을 나타내는 개체를 가져옵니다.

적용 대상

추가 정보