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

# IDStorageStatusArrayX::GetHResult

> IDStorageStatusArrayX::GetHResult

# IDStorageStatusArrayX::GetHResult

指定されたステータス エントリと前のステータス エントリまたはフェンスの間で、最初に失敗した要求の HRESULT コードを返します。

## 構文

```cpp theme={null}
HRESULT GetHResult(  
         UINT32 index  
)  
```

### パラメーター

*index*\
Type: UINT32

取得するステータス エントリのインデックスを指定します。

### 戻り値

Type: HRESULT

要求の HRESULT コード。

## 解説

* いずれかの要求がまだ完了していない場合、戻り値は `E_PENDING` です。
* すべての要求が完了して、1 つ以上の失敗が発生した場合、戻り値は指定されたステータス エントリと前のステータス エントリまたはフェンスの間で最初に失敗した要求の失敗コードです。
* すべての要求が正常に完了した場合、戻り値は `S_OK` です。

## 要件

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

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

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

## 関連項目

[IDStorageStatusArrayX::IsComplete](/reference/system/dstorage/interfaces/IDStorageStatusArrayX/methods/idstoragestatusarrayx_iscomplete)\
[IDStorageStatusArrayX](/reference/system/dstorage/interfaces/IDStorageStatusArrayX/idstoragestatusarrayx)\
[DStorage](/reference/system/dstorage/dstorage_members)


## Related topics

- [IDStorageStatusArrayX::IsComplete](/ja-jp/reference/system/dstorage/interfaces/IDStorageStatusArrayX/methods/idstoragestatusarrayx_iscomplete.md)
- [IDStorageFactoryX::SetDebugFlags](/ja-jp/reference/system/dstorage/interfaces/IDStorageFactoryX/methods/idstoragefactoryx_setdebugflags.md)
- [IDStorageStatusArrayX](/ja-jp/reference/system/dstorage/interfaces/IDStorageStatusArrayX/idstoragestatusarrayx.md)
- [IDStorageQueueX::EnqueueStatus](/ja-jp/reference/system/dstorage/interfaces/IDStorageQueueX/methods/idstoragequeuex_enqueuestatus.md)
- [IDStorageFactoryX::CreateStatusArray](/ja-jp/reference/system/dstorage/interfaces/IDStorageFactoryX/methods/idstoragefactoryx_createstatusarray.md)
