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

# IDStorageFactoryX2

> IDStorageFactoryX2

# IDStorageFactoryX2

代表靜態 DirectStorage Factory 物件。
擴充 [IDStorageFactoryX1](/zh-TW/reference/system/dstorage/interfaces/IDStorageFactoryX1/idstoragefactoryx1) 介面。

## 語法

```cpp theme={null}
class IDStorageFactoryX2 : public IDStorageFactoryX1  
```

## 方法

| 方法 | 描述 |
| - | - |
| [CreateQueue1](/zh-TW/reference/system/dstorage/interfaces/IDStorageFactoryX2/methods/idstoragefactoryx_createqueue1) | 建立 DirectStorage 佇列物件。 |

## 備註

使用 DirectStorage Factory 物件可建立 DirectStorage 佇列、開啟檔案以供 DirectStorage 存取，以及執行全域作業。

若要取得 `IDStorageFactoryX2` 單一執行個體的指標，請使用 [DStorageGetFactory](/zh-TW/reference/system/dstorage/functions/dstoragegetfactory)。

如需詳細資訊，請參閱 [DirectStorage 概觀](/zh-TW/build/console-features/storage/directstorage/directstorage-overview)的
「IDStorageFactoryX」、「IDStorageFactoryX1」和「IDStorageFactoryX2」各節。

## 需求

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

**程式庫：** dstorage.lib

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

## 另請參閱

[IDStorageFactoryX](/zh-TW/reference/system/dstorage/interfaces/IDStorageFactoryX/idstoragefactoryx)\
[IDStorageFactoryX1](/zh-TW/reference/system/dstorage/interfaces/IDStorageFactoryX1/idstoragefactoryx1)\
[DStorageGetFactory](/zh-TW/reference/system/dstorage/functions/dstoragegetfactory)\
[DStorage](/zh-TW/reference/system/dstorage/dstorage_members)


## Related topics

- [IDStorageFactoryX2](/reference/system/dstorage/interfaces/IDStorageFactoryX2/idstoragefactoryx2.md)
- [DirectStorage Overview](/build/console-features/storage/directstorage/directstorage-overview.md)
- [DirectStorage 概述](/zh-CN/build/console-features/storage/directstorage/directstorage-overview.md)
- [DirectStorage 개요](/ko/build/console-features/storage/directstorage/directstorage-overview.md)
- [Información general de DirectStorage](/es/build/console-features/storage/directstorage/directstorage-overview.md)
