StoreConfiguration.ShouldRestrictToEnterpriseStoreOnlyForUser(User) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
判斷是否為指定的使用者啟用商務用 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 引進)
|