StoreContext.GetUserCollectionAsync(IIterable<String>) 方法

定義

取得使用者已購買之目前應用程式附加元件的 Microsoft Store 資訊。

public:
 virtual IAsyncOperation<StoreProductQueryResult ^> ^ GetUserCollectionAsync(IIterable<Platform::String ^> ^ productKinds) = GetUserCollectionAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<StoreProductQueryResult> GetUserCollectionAsync(IIterable<winrt::hstring> const& productKinds);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<StoreProductQueryResult> GetUserCollectionAsync(IEnumerable<string> productKinds);
function getUserCollectionAsync(productKinds)
Public Function GetUserCollectionAsync (productKinds As IEnumerable(Of String)) As IAsyncOperation(Of StoreProductQueryResult)

參數

productKinds

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

字串陣列,指定您要擷取資訊的附加元件類型。 如需支援的字串值清單,請參閱 ProductKind 屬性。

傳回

在成功完成時,非同步作業會傳回 StoreProductQueryResult 物件,其中包含使用者所購買之目前應用程式附加元件的 Microsoft Store 資訊,以及相關的錯誤資訊。

屬性

備註

如需使用此方法的詳細資訊,包括程式碼範例,請參閱 取得應用程式和附加元件的產品資訊

如果目前的使用者未登入 Store,StoreProductQueryResult傳回值的ExtendedError屬性會傳回錯誤碼0x80070525 (ERROR_NO_SUCH_USER) 。

適用於

另請參閱