Share via


StoreConfiguration.ShouldRestrictToEnterpriseStoreOnlyForUser(User) 方法

定義

判斷是否為指定的使用者啟用商務用 Microsoft Store。

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

參數

user
User

Windows.System.User物件,可識別您要判斷是否啟用商務用 Microsoft Store的使用者。

傳回

Boolean

bool

如果為指定的使用者啟用商務用 Microsoft Store,則為 True;否則為 false。

Windows 需求

裝置系列
Windows 10 Creators Update (已於 10.0.15063.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v4.0 引進)

適用於