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

# IDStorageFileX::Close

> IDStorageFileX::Close

# IDStorageFileX::Close

파일을 닫습니다.

## 구문

```cpp theme={null}
void Close(  
)  
```

### 매개 변수

이 메서드에는 매개 변수가 없습니다.

### 반환 값

형식: void

## 설명

이 메서드는 해당 `IDStorageFileX` 개체의 참조 수와 관계없이 파일을 명시적으로 닫습니다.

해당 `IDStorageFileX` 개체에 대한 마지막 참조가 해제되면 파일은 암시적으로 닫힙니다.

파일을 명시적 또는 암시적으로 닫으면 모든 미완료 I/O 작업이 완료될 때까지 차단됩니다.

`IDStorageFileX` 개체가 닫힌 후에는 DirectStorage 요청에서 더 이상 사용할 수 없습니다.

자세한 내용은 [DirectStorage 개요](/build/console-features/storage/directstorage/directstorage-overview)의 "IDStorageFileX" 섹션을 참조하세요.

## 요구 사항

**헤더:** dstorage\_xs.h

**라이브러리:** dstorage\_xs.lib

**지원되는 플랫폼:** XBOX Series 콘솔

## 함께 보기

[IDStorageFactoryX::OpenFile](/reference/system/dstorage/interfaces/IDStorageFactoryX/methods/idstoragefactoryx_openfile)\
[IDStorageFileX](/reference/system/dstorage/interfaces/IDStorageFileX/idstoragefilex)


## Related topics

- [IDStorageFileX](/ko/reference/system/dstorage/interfaces/IDStorageFileX/idstoragefilex.md)
- [IDStorageFactoryX::OpenFile](/ko/reference/system/dstorage/interfaces/IDStorageFactoryX/methods/idstoragefactoryx_openfile.md)
- [IDStorageFileX::GetHandle](/ko/reference/system/dstorage/interfaces/IDStorageFileX/methods/idstoragefilex_gethandle.md)
- [DirectStorage 개요](/ko/build/console-features/storage/directstorage/directstorage-overview.md)
- [DStorage](/ko/reference/system/dstorage/dstorage_members.md)
