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

# XAppCaptureMetadataPurgedCallback

> XAppCaptureMetadataPurgedCallback

# XAppCaptureMetadataPurgedCallback

定义在发生元数据清除时要调用的回调函数。

## 语法

```cpp theme={null}
void XAppCaptureMetadataPurgedCallback(  
         void* context  
)  
```

### 参数

*context*   \_In\_\
类型：void\*

提供回调函数执行所需信息的对象。通常是调用对象。

### 返回值

类型：void

## 备注

使用 [XAppCaptureRegisterMetadataPurged](/reference/system/xappcapture/functions/xappcaptureregistermetadatapurged) 注册此处定义的回调函数，以便在元数据被清除时调用它。这将允许你重新评估 title 添加到捕获中的元数据量。你应主要在开发和测试期间使用此函数，以确保 title 添加到捕获中的元数据不超过允许的数量。它不打算用于在 title 运行时更改游戏行为。

## 要求

**头文件：** XAppCapture.h

**库：** xgameruntime.lib

**支持的平台：** Windows、XBOX One 系列主机和 XBOX Series 主机

## 另请参阅

[GameDVR 概览](/build/console-features/game-dvr/gamedvr-broadcast)\
[XAppCapture 成员](/reference/system/xappcapture/xappcapture_members)\
[XAppCaptureRegisterMetadataPurged](/reference/system/xappcapture/functions/xappcaptureregistermetadatapurged)


## Related topics

- [AppCaptureRegisterMetadataPurged](/zh-CN/reference/system/xappcapture/functions/xappcaptureregistermetadatapurged.md)
- [XAppCapture](/zh-CN/reference/system/xappcapture/xappcapture_members.md)
- [XAppCaptureUnRegisterMetadataPurged](/zh-CN/reference/system/xappcapture/functions/xappcaptureunregistermetadatapurged.md)
- [XAppCaptureMetadataRemainingStorageBytesAvailable](/zh-CN/reference/system/xappcapture/functions/xappcapturemetadataremainingstoragebytesavailable.md)
- [XAppCaptureMetadataPriority](/zh-CN/reference/system/xappcapture/enums/xappcapturemetadatapriority.md)
