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

# GetErrorEvent

> IDStorageQueueX::GetErrorEvent

# IDStorageQueueX::GetErrorEvent

待機するイベントを取得します。

## 構文

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

### パラメーター

このメソッドにパラメーターはありません。

### 戻り値

Type: HANDLE

イベントへの HANDLE。

## 解説

このキューの読み取り要求でエラーが発生すると、イベントがシグナルされます。診断情報を取得するには [IDStorageQueueX::RetrieveErrorRecord](https://docs.xbox.com/ja-jp/reference/system/dstorage/interfaces/IDStorageQueueX/methods/idstoragequeuex_retrieveerrorrecord.md) を呼び出します。タイトルでイベントが不要になったら、`CloseHandle` を呼び出します。

詳細については、[DirectStorage の概要](https://docs.xbox.com/ja-jp/build/console-features/storage/directstorage/directstorage-overview.md) の「GetErrorEvent/RetrieveErrorRecord」セクションを参照してください。

## 要件

**ヘッダー:** dstorage\_xs.h

**ライブラリ:** dstorage\_xs.lib

**サポートされているプラットフォーム:** XBOX Series 本体

## 関連項目

[IDStorageQueueX](https://docs.xbox.com/ja-jp/reference/system/dstorage/interfaces/IDStorageQueueX/idstoragequeuex.md)\
[DStorage](https://docs.xbox.com/ja-jp/reference/system/dstorage/dstorage_members.md)


## Related topics

- [DirectStorage の概要](https://docs.xbox.com/ja-jp/build/console-features/storage/directstorage/directstorage-overview.md)
- [RetrieveErrorRecord](https://docs.xbox.com/ja-jp/reference/system/dstorage/interfaces/IDStorageQueueX/methods/idstoragequeuex_retrieveerrorrecord.md)
- [DSTORAGE_ERROR_RECORD](https://docs.xbox.com/ja-jp/reference/system/dstorage/structs/dstorage_error_record.md)
- [DSTORAGE_COMMAND_TYPE](https://docs.xbox.com/ja-jp/reference/system/dstorage/enums/dstorage_command_type.md)
- [IDStorageQueueX (インターフェイスの内容)](https://docs.xbox.com/ja-jp/reference/system/dstorage/interfaces/IDStorageQueueX/idstoragequeuex.md)
