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 プロパティをご覧ください。

戻り値

正常に完了すると、ユーザーが購入した現在のアプリのアドオンの Microsoft Store 情報と関連するエラー情報を含む StoreProductQueryResult オブジェクトを返す非同期操作。

属性

注釈

コード例など、このメソッドの使用方法の詳細については、「 アプリとアドオンの製品情報を取得する」を参照してください。

現在のユーザーが Store にサインインしていない場合、StoreProductQueryResult 戻り値の ExtendedError プロパティはエラー コード 0x80070525 (ERROR_NO_SUCH_USER) を返します。

適用対象

こちらもご覧ください