Language

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 オブジェクトを返す非同期操作。

属性

注釈

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

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

適用対象

関連項目