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

# IDStorageQueueX2

> IDStorageQueueX2

# IDStorageQueueX2

代表 DirectStorage 队列。
扩展了 [IDStorageQueueX1](/reference/system/dstorage/interfaces/IDStorageQueueX1/idstoragequeuex1) 接口。

## Syntax

```cpp theme={null}
class IDStorageQueueX2 : public IDStorageQueueX1  
```

## Methods

| 方法                                                                                              | 说明         |
| ----------------------------------------------------------------------------------------------- | ---------- |
| [Query1](/reference/system/dstorage/interfaces/IDStorageQueueX2/methods/idstoragequeuex_query1) | 获取有关队列的信息。 |

## Remarks

DirectStorage 队列会暂存条目，直到游戏调用队列的 [Submit](/reference/system/dstorage/interfaces/IDStorageQueueX/methods/idstoragequeuex_submit) 方法，或者某个 Enqueue 方法自上次提交以来填充的量超过了队列容量的一半，从而触发自动提交（如果为该队列启用了自动提交）。DirectStorage 队列中的所有条目均按其入队顺序完成。

`IDStorageQueueX2` 通过 [Query1](/reference/system/dstorage/interfaces/IDStorageQueueX2/methods/idstoragequeuex_query1) 方法扩展了 `IDStorageQueueX1`，用于查询队列的相关信息，其中包括禁用 DirectStorage 队列自动提交功能的能力。

有关详细信息，请参阅 [DirectStorage 概述](/build/console-features/storage/directstorage/directstorage-overview) 中的“IDStorageQueueX”“IDStorageQueueX1”和“IDStorageQueueX2”一节。

## Requirements

**头文件：** dstorage\_xs.h

**库：** dstorage.lib

**受支持的平台：** XBOX Series 主机

## See also

[IDStorageFactoryX::CreateQueue](/reference/system/dstorage/interfaces/IDStorageFactoryX/methods/idstoragefactoryx_createqueue)\
[IDStorageFactoryX2::CreateQueue1](/reference/system/dstorage/interfaces/IDStorageFactoryX2/methods/idstoragefactoryx_createqueue1)\
[DStorage](/reference/system/dstorage/dstorage_members)


## Related topics

- [DirectStorage 概述](/zh-CN/build/console-features/storage/directstorage/directstorage-overview.md)
- [IDStorageQueueX2::Query1](/zh-CN/reference/system/dstorage/interfaces/IDStorageQueueX2/methods/idstoragequeuex_query1.md)
- [IDStorageFactoryX2::CreateQueue1](/zh-CN/reference/system/dstorage/interfaces/IDStorageFactoryX2/methods/idstoragefactoryx_createqueue1.md)
- [DSTORAGE_QUEUE_INFO1](/zh-CN/reference/system/dstorage/structs/dstorage_queue_info1.md)
- [DStorage](/zh-CN/reference/system/dstorage/dstorage_members.md)
