RetailInfo Class

Definition

A utility class that supports one method, IsDemoModeEnabled, and one property, Properties. Call IsDemoModeEnabled to determine whether the device where the app is running has specifically enabled its retail demo mode.

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
Inheritance
Object Platform::Object IInspectable RetailInfo
Attributes

Windows requirements

Device family
Windows Desktop Extension SDK (introduced in 10.0.10240.0)
Windows Mobile Extension SDK (introduced in 10.0.10240.0)
Windows 10, version 2104 (introduced in 10.0.20348.0)
API contract
Windows.System.Profile.ProfileRetailInfoContract (introduced in v1.0)

Remarks

If RetailInfo.IsDemoModeEnabled returns true, you can get the set of available properties from RetailInfo.Properties. These properties include specific information that is useful for pre-installed demo apps that run in a retail setting. For example, you can get a ManufacturerName, ScreenSize, and so on, and display that info in an app that's intended for retail demo. The strings returned are typically suitable for inclusion in a UI.

When possible, use RetailInfo instead of the previous Windows.Phone.System.Profile.RetailMode API. Windows.Phone.System.Profile.RetailMode is only available for Windows Phone and doesn't support a "Properties" set of device-specific properties.

Properties

IsDemoModeEnabled

Determines whether the device where the app is running has specifically enabled its retail demo mode.

Properties

Gets an object that represents the set of available retail demo properties and their values.

Applies to

See also