> ## 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.

# XblEventsSetStorageAllotment

> XblEventsSetStorageAllotment

# XblEventsSetStorageAllotment

Xsapi が最も古いファイルの削除を開始するまでに、再試行およびアップロード待ちのイベントを保存するために使用できるディスク領域の最大容量を設定します。

## 構文

```cpp theme={null}
HRESULT XblEventsSetStorageAllotment(  
         uint64_t storageAllotmentInBytes  
)  
```

### パラメーター

*storageAllotmentInBytes*   \
型: uint64\_t

保留中のイベントの保存に使用される最大ストレージ領域 (バイト単位)。

### 戻り値

型: HRESULT

この API 操作の HRESULT 戻り値コード。

## 解説

最大ストレージ領域を超えると、最も古いファイルが暗黙的に削除されます。これはグローバル設定であり、すべての XBOX Live コンテキストに適用されることに注意してください。既定値は約 20MB です。

## 要件

**ヘッダー:** events\_c.h

**ライブラリ:** Microsoft.Xbox.Services.14x.GDK.C.lib

## 関連項目

[events\_c](/reference/live/xsapi-c/events_c/events_c_members)


## Related topics

- [IDStorageQueueX1::EnqueueSetEvent](/ja-jp/reference/system/dstorage/interfaces/IDStorageQueueX1/methods/idstoragequeuex_enqueuesetevent.md)
- [XblLocalStorageSetHandlers](/ja-jp/reference/live/xsapi-c/platform_c/functions/xbllocalstoragesethandlers.md)
- [DirectStorage の概要](/ja-jp/build/console-features/storage/directstorage/directstorage-overview.md)
- [IDStorageQueueX1](/ja-jp/reference/system/dstorage/interfaces/IDStorageQueueX1/idstoragequeuex1.md)
- [XblEventsSetMaxFileSize](/ja-jp/reference/live/xsapi-c/events_c/functions/xbleventssetmaxfilesize.md)
