Skip to main content

IDStorageFileX::Close

关闭文件。

Syntax

Parameters

此方法无参数。

Return value

类型:void

Remarks

此方法显式关闭文件,与对应的 IDStorageFileX 对象的引用计数无关。 当对应 IDStorageFileX 对象的最后一个引用被释放时,文件会被隐式关闭。 无论是显式关闭还是隐式关闭文件,都会阻塞直到所有尚未完成的 I/O 操作全部结束。 IDStorageFileX 对象被关闭后,就不能再在 DirectStorage 请求中使用它。 有关详细信息,请参阅 DirectStorage 概述 中的“IDStorageFileX”一节。

Requirements

头文件: dstorage_xs.h 库: dstorage_xs.lib 受支持的平台: XBOX Series 主机

See also

IDStorageFactoryX::OpenFile
IDStorageFileX
最后修改于 2026年8月24日