Share via


StoreConfiguration Class

Definition

Defines static methods and properties for accessing information about the device hardware and configuring information about the system, the mobile operator, and the active user account. These members are used in various Microsoft Store scenarios.

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
Inheritance
Object Platform::Object IInspectable StoreConfiguration
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

Important

Access to this API is protected by a private capability that is restricted to apps that are developed by Microsoft.

Version history

Windows version SDK version Value added
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

Properties

HardwareManufacturerInfo

Gets hardware manufacturer information for the current device.

PurchasePromptingPolicy

Gets or sets a value that indicates whether the Microsoft Store prompts the user before making a purchase.

Methods

FilterUnsupportedSystemFeaturesAsync(IIterable<StoreSystemFeature>)

Given a list of hardware features, this method returns a modified list that contains only the hardware features that are supported on the current device.

GetEnterpriseStoreWebAccountId()

Gets the Store user account ID for the current Azure AD user who is signed in to the Store.

GetEnterpriseStoreWebAccountIdForUser(User)

Gets the Store user account ID for the specified Azure AD user who is signed in to the Store.

GetPurchasePromptingPolicyForUser(User)

Gets a value that indicates whether the Windows Store prompts the specified user before making a purchase.

GetStoreLogDataAsync(StoreLogOptions)

Gets Microsoft Store log data for the current device.

GetStoreWebAccountId()

Gets the Store user account ID for the current user who is signed in to the Store.

GetStoreWebAccountIdForUser(User)

Gets the Store user account ID for the specified user who is signed in to the Store.

HasStoreWebAccount()

Determines whether the current user has a Microsoft Store account.

HasStoreWebAccountForUser(User)

Determines whether the specified user has a Microsoft Store account.

IsPinToDesktopSupported()

Determines whether apps can be pinned to the desktop on the current device.

IsPinToStartSupported()

Determines whether apps can be pinned to the Start menu on the current device.

IsPinToTaskbarSupported()

Determines whether apps can be pinned to the taskbar on the current device.

IsStoreWebAccountId(String)

Determines whether the specified user ID is also being used to sign in to the Microsoft Store on the device.

IsStoreWebAccountIdForUser(User, String)

Determines whether the specified user and user ID is also being used to sign in to the Microsoft Store on the device.

PinToDesktop(String)

Pins the specified app to the desktop for the all users on the current device.

PinToDesktopForUser(User, String)

Pins the specified app to the desktop for the specified user on the current device.

SetEnterpriseStoreWebAccountId(String)

Sets the Store user account ID for the current Azure AD user who is signed in to the Store so that other apps can query against this ID.

SetEnterpriseStoreWebAccountIdForUser(User, String)

Sets the Store user account ID for the specified Azure AD user so that other apps can query against this ID.

SetMobileOperatorConfiguration(String, UInt32, UInt32)

Configures mobile operator information for the device.

SetPurchasePromptingPolicyForUser(User, IReference<UInt32>)

Sets a value that indicates whether the Microsoft Store prompts the user before making a purchase.

SetStoreWebAccountId(String)

Sets the Store user account ID for the current user who is signed in to the Store so that other apps can query against this ID.

SetStoreWebAccountIdForUser(User, String)

Sets the Store user account ID for the specified user so that other apps can query against this ID.

SetSystemConfiguration(String, String, DateTime, String)

Configures miscellaneous system information for the device.

ShouldRestrictToEnterpriseStoreOnly()

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

ShouldRestrictToEnterpriseStoreOnlyForUser(User)

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

Applies to