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

# IsValid

> 檢查封存是否已開啟且有效。

檢查封存是否已開啟且有效。

<a id="syntaxSection" />

## 語法

```cpp theme={null}
bool IsValid(  
)  
```

<a id="parametersSection" />

### 參數

無。

<a id="retvalSection" />

### 傳回值

類型: bool

如果封存已開啟且有效，則傳回 true；否則傳回 false。

<a id="remarksSection" />

## 備註

`XBTCArchiveReader_IsValid` 會驗證封存是否已開啟且有效。\
此方法可搭配 `OpenFromMemory()` 與 `OpenFromFile` 使用。
如需 `OpenFromMemory()` 的詳細資訊，請參閱 [xbtcarchivereader\_openfrommemory](/zh-TW/reference/graphics/xbtc/interfaces/XBTCArchiveReader/methods/xbtcarchivereader_openfrommemory)。
如需 `OpenFromFile` 的詳細資訊，請參閱 [xbtcarchivereader\_openfromfile](/zh-TW/reference/graphics/xbtc/interfaces/XBTCArchiveReader/methods/xbtcarchivereader_openfromfile)。

<a id="requirementsSection" />

**標頭:** XBTC.h

**支援的平台**: XBOX One 系列主機與 XBOX Series 主機

<a id="seealsoSection" />

## 另請參閱

[XBTCArchiveReader](/zh-TW/reference/graphics/xbtc/interfaces/XBTCArchiveReader/xbtcarchivereader)
[XBTC](/zh-TW/reference/graphics/xbtc/xbtc_members)


## Related topics

- [Validate Api Policy](/api-reference/authentication/validate-api-policy.md)
- [驗證 API 原則](/zh-TW/services/playfab/api-references/rest/admin/authentication/validate-api-policy.md)
- [XStoreIsLicenseValid](/zh-TW/reference/system/xstore/functions/xstoreislicensevalid.md)
- [XSystemIsHandleValid](/zh-TW/reference/system/xsystem/functions/xsystemishandlevalid.md)
- [ApuIsVirtualAddressValid](/zh-TW/reference/audio/apu/functions/apuisvirtualaddressvalid.md)
