RetailInfo クラス

定義

1 つのメソッド IsDemoModeEnabled と 1 つのプロパティ Properties をサポートするユーティリティ クラス。 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 から使用可能なプロパティのセットを取得できます。 これらのプロパティには、小売設定で実行されるプレインストール済みのデモ アプリに役立つ特定の情報が含まれます。 たとえば、 ManufacturerNameScreenSize などを取得し、その情報を小売デモ用のアプリに表示できます。 返される文字列は、通常、UI に含めるのに適しています。

可能であれば、以前の Windows.Phone.System.Profile.RetailMode API の代わりに RetailInfo を使用します。 Windows.Phone.System.Profile.RetailMode は、Windows Phoneでのみ使用でき、デバイス固有のプロパティの "プロパティ" セットをサポートしていません。

プロパティ

IsDemoModeEnabled

アプリが実行されているデバイスで、小売デモ モードが特に有効になっているかどうかを判断します。

Properties

使用可能な小売デモ プロパティとその値のセットを表す オブジェクトを取得します。

適用対象

こちらもご覧ください