Share via


StoreConfiguration.ShouldRestrictToEnterpriseStoreOnlyForUser(User) Method

Definition

Determines whether the Microsoft Store for Business is enabled for the specified user.

public:
 static bool ShouldRestrictToEnterpriseStoreOnlyForUser(User ^ user);
 static bool ShouldRestrictToEnterpriseStoreOnlyForUser(User const& user);
public static bool ShouldRestrictToEnterpriseStoreOnlyForUser(User user);
function shouldRestrictToEnterpriseStoreOnlyForUser(user)
Public Shared Function ShouldRestrictToEnterpriseStoreOnlyForUser (user As User) As Boolean

Parameters

user
User

A Windows.System.User object that identifies the user for whom you want to determine whether the Microsoft Store for Business is enabled.

Returns

Boolean

bool

True if the Microsoft Store for Business is enabled for the specified user; otherwise false.

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

Applies to