StoreConfiguration 類別

定義

定義靜態方法和屬性,以存取裝置硬體的相關資訊,以及設定系統、行動操作員和作用中使用者帳戶的相關資訊。 這些成員用於各種 Microsoft Store 案例。

public ref class StoreConfiguration abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
class StoreConfiguration final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public static class StoreConfiguration
Public Class StoreConfiguration
繼承
Object Platform::Object IInspectable StoreConfiguration
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

備註

重要

存取此 API 受到受限於 Microsoft 所開發之應用程式的私用功能保護。

版本歷程記錄

Windows 版本 SDK 版本 已新增值
1511 10586 PurchasePromptingPolicy
1607 14393 GetPurchasePromptingPolicyForUser
1607 14393 GetStoreLogDataAsync
1607 14393 HasStoreWebAccount
1607 14393 HasStoreWebAccountForUser
1607 14393 IsStoreWebAccountIdForUser
1607 14393 SetPurchasePromptingPolicyForUser
1607 14393 SetStoreWebAccountIdForUser
1703 15063 GetEnterpriseStoreWebAccountId
1703 15063 GetEnterpriseStoreWebAccountIdForUser
1703 15063 GetStoreWebAccountId
1703 15063 GetStoreWebAccountIdForUser
1703 15063 SetEnterpriseStoreWebAccountId
1703 15063 SetEnterpriseStoreWebAccountIdForUser
1703 15063 ShouldRestrictToEnterpriseStoreOnly
1703 15063 ShouldRestrictToEnterpriseStoreOnlyForUser
1809 17763 IsPinToDesktopSupported
1809 17763 IsPinToStartSupported
1809 17763 IsPinToTaskbarSupported
1809 17763 PinToDesktop
1809 17763 PinToDesktopForUser

屬性

HardwareManufacturerInfo

取得目前裝置的硬體製造商資訊。

PurchasePromptingPolicy

取得或設定值,這個值表示 Microsoft Store 是否在進行購買之前提示使用者。

方法

FilterUnsupportedSystemFeaturesAsync(IIterable<StoreSystemFeature>)

假設有硬體功能的清單,這個方法會傳回修改的清單,其中包含目前裝置上支援的硬體功能。

GetEnterpriseStoreWebAccountId()

取得目前登入市集之 Azure AD 使用者的市集使用者帳戶識別碼。

GetEnterpriseStoreWebAccountIdForUser(User)

取得已登入市集之指定 Azure AD 使用者的市集使用者帳戶識別碼。

GetPurchasePromptingPolicyForUser(User)

取得值,指出 Windows 市集是否在購買之前提示指定的使用者。

GetStoreLogDataAsync(StoreLogOptions)

取得目前裝置的 Microsoft Store 記錄資料。

GetStoreWebAccountId()

取得目前登入市集之使用者的市集使用者帳戶識別碼。

GetStoreWebAccountIdForUser(User)

取得已登入市集之指定使用者的市集使用者帳戶識別碼。

HasStoreWebAccount()

判斷目前使用者是否有 Microsoft Store 帳戶。

HasStoreWebAccountForUser(User)

判斷指定的使用者是否有 Microsoft Store 帳戶。

IsPinToDesktopSupported()

判斷是否可以將應用程式釘選到目前裝置上的桌面。

IsPinToStartSupported()

判斷是否可以將應用程式釘選到目前裝置上的 [開始] 功能表。

IsPinToTaskbarSupported()

判斷是否可以將應用程式釘選到目前裝置上的工作列。

IsStoreWebAccountId(String)

判斷指定的使用者識別碼是否也用來登入裝置上的 Microsoft Store。

IsStoreWebAccountIdForUser(User, String)

判斷指定的使用者和使用者識別碼是否也用來登入裝置上的 Microsoft Store。

PinToDesktop(String)

將指定的應用程式釘選到目前裝置上所有使用者的桌面。

PinToDesktopForUser(User, String)

將指定的應用程式釘選到目前裝置上指定使用者的桌面。

SetEnterpriseStoreWebAccountId(String)

設定目前登入市集之 Azure AD 使用者的市集使用者帳戶識別碼,讓其他應用程式可以針對此識別碼進行查詢。

SetEnterpriseStoreWebAccountIdForUser(User, String)

設定指定之 Azure AD 使用者的市集使用者帳戶識別碼,讓其他應用程式可以查詢此識別碼。

SetMobileOperatorConfiguration(String, UInt32, UInt32)

設定裝置的行動電信業者資訊。

SetPurchasePromptingPolicyForUser(User, IReference<UInt32>)

設定值,指出 Microsoft Store 是否在進行購買之前提示使用者。

SetStoreWebAccountId(String)

設定目前登入市集之使用者的市集使用者帳戶識別碼,讓其他應用程式可以針對此識別碼進行查詢。

SetStoreWebAccountIdForUser(User, String)

設定指定使用者的市集使用者帳戶識別碼,讓其他應用程式可以針對此識別碼進行查詢。

SetSystemConfiguration(String, String, DateTime, String)

設定裝置的其他系統資訊。

ShouldRestrictToEnterpriseStoreOnly()

判斷目前使用者是否啟用商務用 Microsoft Store。

ShouldRestrictToEnterpriseStoreOnlyForUser(User)

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

適用於