SharedModeSettings.IsEnabled Property

Definition

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

public:
 static property bool IsEnabled { bool get(); };
static bool IsEnabled();
public static bool IsEnabled { get; }
var boolean = SharedModeSettings.isEnabled;
Public Shared ReadOnly Property IsEnabled As Boolean

Property Value

Boolean

bool

A Boolean value that indicates if shared mode is currently enabled.

Examples

if (!Windows.System.Profile.SharedModeSettings.IsEnabled)
{
    LaunchWelcomeExperience();
}

Remarks

Returns true when the EnableSharedPCMode policy is set.

Returns true when running on a Surface Hub.

Examples of changes you might make in an education environment:

  • Not launch the first-run experience

A true value means the PC is running in scenarios where multiple consecutive users use the PC. These user accounts may be deleted, which means that users may have a new account created each time they use the same device.

Applies to