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

# LifetimeStateUpdated

> 当生命周期跟踪对象的生命周期状态发生变化时调用。

当生命周期跟踪对象的生命周期状态发生变化时调用。

## 语法

```cpp theme={null}
void LifetimeStateUpdated(
    D3D12_LIFETIME_STATE NewState
)
```

### 参数

*NewState*\
类型：D3D12\_LIFETIME\_STATE

新状态。

### 返回值

类型：void

无。

## 备注

## 要求

**头文件：** d3d12\_xs.h 或 d3d12\_x.h\
**库：** d3d12\_xs.lib 或 d3d12\_x.lib\
**支持的平台**：XBOX Series 主机和 XBOX One 系列

## 另请参阅


## Related topics

- [D3D12_LIFETIME_STATE](/zh-CN/reference/graphics/d3d12/enums/d3d12_lifetime_state_public.md)
- [PFLobbyUpdatedStateChange](/zh-CN/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/structs/pflobbyupdatedstatechange.md)
- [ID3D12LifetimeTracker](/zh-CN/reference/graphics/d3d12/interfaces/id3d12lifetimetracker/id3d12lifetimetracker_public.md)
- [ID3D12LifetimeOwner](/zh-CN/reference/graphics/d3d12/interfaces/id3d12lifetimeowner/id3d12lifetimeowner_public.md)
- [PFLobbyGetOwner](/zh-CN/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pflobbygetowner.md)
