StoreConfiguration.ShouldRestrictToEnterpriseStoreOnly 方法

定义

确定是否为当前用户启用适用于企业的 Microsoft Store。

public:
 static bool ShouldRestrictToEnterpriseStoreOnly();
 static bool ShouldRestrictToEnterpriseStoreOnly();
public static bool ShouldRestrictToEnterpriseStoreOnly();
function shouldRestrictToEnterpriseStoreOnly()
Public Shared Function ShouldRestrictToEnterpriseStoreOnly () As Boolean

返回

Boolean

bool

如果为当前用户启用了适用于企业的 Microsoft Store,则为 True;否则为 false。

Windows 要求

设备系列
Windows 10 Creators Update (在 10.0.15063.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v4.0 中引入)

适用于