SharedModeSettings Class

Definition

Provides access to the settings for shared mode. For example, devices with large screens could support communal shared apps.

public ref class SharedModeSettings abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.System.Profile.ProfileSharedModeContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Static(Windows.System.Profile.ISharedModeSettingsStatics, 65536, Windows.System.Profile.ProfileSharedModeContract)]
class SharedModeSettings abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.System.Profile.ProfileSharedModeContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Static(Windows.System.Profile.ISharedModeSettingsStatics, 65536, "Windows.System.Profile.ProfileSharedModeContract")]
class SharedModeSettings abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.System.Profile.ProfileSharedModeContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Static(Windows.System.Profile.ISharedModeSettingsStatics, 65536, "Windows.System.Profile.ProfileSharedModeContract")]
/// [Windows.Foundation.Metadata.DualApiPartition(version=167772163)]
/// [Windows.Foundation.Metadata.Static(Windows.System.Profile.ISharedModeSettingsStatics2, 131072, "Windows.System.Profile.ProfileSharedModeContract")]
class SharedModeSettings abstract sealed
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.System.Profile.ProfileSharedModeContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Static(typeof(Windows.System.Profile.ISharedModeSettingsStatics), 65536, typeof(Windows.System.Profile.ProfileSharedModeContract))]
public static class SharedModeSettings
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.System.Profile.ProfileSharedModeContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Static(typeof(Windows.System.Profile.ISharedModeSettingsStatics), 65536, "Windows.System.Profile.ProfileSharedModeContract")]
public static class SharedModeSettings
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.System.Profile.ProfileSharedModeContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Static(typeof(Windows.System.Profile.ISharedModeSettingsStatics), 65536, "Windows.System.Profile.ProfileSharedModeContract")]
[Windows.Foundation.Metadata.DualApiPartition(version=167772163)]
[Windows.Foundation.Metadata.Static(typeof(Windows.System.Profile.ISharedModeSettingsStatics2), 131072, "Windows.System.Profile.ProfileSharedModeContract")]
public static class SharedModeSettings
Public Class SharedModeSettings
Inheritance
SharedModeSettings
Attributes

Windows 10 requirements

Device family
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
Windows Team Extension SDK (introduced in 10.0.10240.0)
API contract
Windows.System.Profile.ProfileSharedModeContract (introduced in v1.0)

Remarks

For more info on when SharedModeSettings is used on Desktop, see Set up a shared or guest PC with Windows 10.

Version history

Windows version SDK version Value added
1703 15063 ShouldAvoidLocalStorage

Properties

IsEnabled

Gets a Boolean value that indicates if shared mode is currently enabled.

ShouldAvoidLocalStorage

Gets a Boolean value indicating that your app should not store files on the local hard drive.

Applies to