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

# XblEventsSetMaxFileSize

> XblEventsSetMaxFileSize

# XblEventsSetMaxFileSize

設定擱置事件檔案的檔案大小上限。

## 語法

```cpp theme={null}
HRESULT XblEventsSetMaxFileSize(  
         uint64_t maxFileSizeInByes  
)  
```

### 參數

*maxFileSizeInByes*   \
類型：uint64\_t

擱置事件檔案的大小上限 (以位元組為單位)。

### 傳回值

類型：HRESULT

此 API 作業的 HRESULT 傳回碼。

## 備註

檔案會一次全部讀入記憶體。請注意，這是全域設定，將套用至所有 XBOX Live 內容。預設值為 128KB。

## 需求

**標頭：** events\_c.h

**程式庫：** Microsoft.Xbox.Services.14x.GDK.C.lib

## 另請參閱

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


## Related topics

- [HCWebSocketSetMaxReceiveBufferSize](/zh-TW/reference/live/httpclient/httpclient/functions/hcwebsocketsetmaxreceivebuffersize.md)
- [XblMultiplayerSessionConstantsSetMaxMembersInSession](/zh-TW/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayersessionconstantssetmaxmembersinsession.md)
- [FileSet](/zh-TW/services/playfab/api-references/events/data-types/fileset.md)
- [entity_files_set](/zh-TW/services/playfab/api-references/events/PlayerProfile/entity-files-set.md)
- [XblTitleStorageBlobMetadata](/zh-TW/reference/live/xsapi-c/title_storage_c/structs/xbltitlestorageblobmetadata.md)
