> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XStoreCollectionData

> XStoreCollectionData

# XStoreCollectionData

特定の SKU に対するユーザーの権利を表します。

## Syntax

```cpp theme={null}
typedef struct XStoreCollectionData {  
    time_t acquiredDate;  
    time_t startDate;  
    time_t endDate;  
    bool isTrial;  
    uint32_t trialTimeRemainingInSeconds;  
    uint32_t quantity;  
    const char* campaignId;  
    const char* developerOfferId;  
} XStoreCollectionData  
```

### Members

*acquiredDate*\
型: time\_t

権利が取得された日付。

*startDate*\
型: time\_t

権利の開始日。

*endDate*\
型: time\_t

権利が終了する日付。

*isTrial*\
型: bool

権利が試用版であるかどうかを示します。

*trialTimeRemainingInSeconds*\
型: uint32\_t

試用版の残り時間。

*quantity*\
型: uint32\_t

権利の項目数。消耗型の場合、これは残高を表します。

*campaignId*\
型: const char\*

権利のキャンペーン ID。

*developerOfferId*\
型: const char\*

開発者オファー ID。

## Remarks

**XStoreCollectionData** はストア製品の SKU (Stock Keeping Unit) に関する追加情報を提供します。**XStoreCollectionData** は多数の種類の製品または製品コレクションを参照する場合があります。そのため、SKU に該当しないフィールドには値が設定されていない場合があります。**XStoreCollectionData** は [StoreSku](/reference/system/xstore/structs/xstoresku) 構造体のメンバーです。

## Requirements

**ヘッダー:** XStore.h (XGameRuntime.h に含まれる)

**サポートされているプラットフォーム:** Windows、XBOX One ファミリー本体および XBOX Series 本体

## Conceptual documentation

* [ストア開発権利ツール (DevEntitlementTool.exe)](/tools/tools-services/live-dev-entitlements-tool)

## See also

[XStore](/reference/system/xstore/xstore_members)\
[XStoreSku](/reference/system/xstore/structs/xstoresku)


## Related topics

- [Store 開発エンタイトルメント ツール (DevEntitlementTool.exe)](/ja-jp/tools/tools-services/live-dev-entitlements-tool.md)
- [XStore](/ja-jp/reference/system/xstore/xstore_members.md)
- [XStoreSku](/ja-jp/reference/system/xstore/structs/xstoresku.md)
- [collections.mp.microsoft.com/v9.0/collections/publisherQuery](/ja-jp/reference/microsoft-store-apis/xstore-v9-query-for-products.md)
- [collections.mp.microsoft.com/v8.0/collections/consume](/ja-jp/reference/microsoft-store-apis/xstore-v8-consume.md)
