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

# IDStorageQueueX::GetErrorEvent

> IDStorageQueueX::GetErrorEvent

# IDStorageQueueX::GetErrorEvent

取得要等候的事件。

## 語法

```cpp theme={null}
HANDLE GetErrorEvent(  
)  
```

### 參數

此方法沒有參數。

### 傳回值

類型：HANDLE

事件的 HANDLE。

## 備註

當此佇列中的讀取要求發生錯誤時，事件就會收到訊號。呼叫 [IDStorageQueueX::RetrieveErrorRecord](/zh-TW/reference/system/dstorage/interfaces/IDStorageQueueX/methods/idstoragequeuex_retrieveerrorrecord) 以擷取診斷資訊。當遊戲不再需要該事件時，請呼叫 `CloseHandle`。

如需詳細資訊，請參閱 [DirectStorage 概觀](/zh-TW/build/console-features/storage/directstorage/directstorage-overview)中的「GetErrorEvent/RetrieveErrorRecord」章節。

## 需求

**標頭：** dstorage\_xs.h

**程式庫：** dstorage\_xs.lib

**支援的平台：** XBOX Series 主機

## 另請參閱

[IDStorageQueueX](/zh-TW/reference/system/dstorage/interfaces/IDStorageQueueX/idstoragequeuex)\
[DStorage](/zh-TW/reference/system/dstorage/dstorage_members)


## Related topics

- [IDStorageQueueX::GetErrorEvent](/reference/system/dstorage/interfaces/IDStorageQueueX/methods/idstoragequeuex_geterrorevent.md)
- [IDStorageQueueX::RetrieveErrorRecord](/reference/system/dstorage/interfaces/IDStorageQueueX/methods/idstoragequeuex_retrieveerrorrecord.md)
