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

# XAppCaptureMetadataStopState

> XAppCaptureMetadataStopState

# XAppCaptureMetadataStopState

將特定具名狀態的狀態停止新增至應用程式擷取中繼資料。

## 語法

```cpp theme={null}
HRESULT XAppCaptureMetadataStopState(  
         const char* name  
)  
```

### 參數

*name*   \_In\_z\_\
類型：char\*

要停止的狀態名稱。

### 傳回值

類型：HRESULT

函式結果。

## 備註

<Note>在時間敏感執行緒上呼叫此函式並不安全。如需詳細資訊，請參閱[時間敏感執行緒](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads)。</Note>

將停止狀態新增至應用程式擷取時間軸，會標記先前已開始之事件的結束。事件是由下列其中一個 XappCaptureMetaDataStart\*Event 函式開始：[XAppCaptureMetadataStartInt32State](/zh-TW/reference/system/xappcapture/functions/xappcapturemetadatastartint32state)、[XAppCaptureMetadataStartDoubleState](/zh-TW/reference/system/xappcapture/functions/xappcapturemetadatastartdoublestate) 或 [XAppCaptureMetadataStartStringState](/zh-TW/reference/system/xappcapture/functions/xappcapturemetadatastartstringstate)。停止狀態一次只會停止一個狀態，如果您想要一次停止所有中繼資料狀態，請呼叫 [XAppCaptureMetadataStopAllStates](/zh-TW/reference/system/xappcapture/functions/xappcapturemetadatastopallstates)。

## 需求

**標頭：** XAppCapture.h

**程式庫：** xgameruntime.lib

**支援的平台：** Windows、XBOX One 系列主機和 XBOX Series 主機

## 概念文件

* [時間敏感執行緒](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads)

## 另請參閱

[GameDVR 概觀](/zh-TW/build/console-features/game-dvr/gamedvr-broadcast)\
[XAppCapture 成員](/zh-TW/reference/system/xappcapture/xappcapture_members)\
[XAppCaptureMetadataStopAllStates](/zh-TW/reference/system/xappcapture/functions/xappcapturemetadatastopallstates)\
[XAppCaptureMetadataStartInt32State](/zh-TW/reference/system/xappcapture/functions/xappcapturemetadatastartint32state)\
[XAppCaptureMetadataStartDoubleState](/zh-TW/reference/system/xappcapture/functions/xappcapturemetadatastartdoublestate)\
[XAppCaptureMetadataStopAllStates](/zh-TW/reference/system/xappcapture/functions/xappcapturemetadatastopallstates)


## Related topics

- [XAppCaptureMetadataStopState](/reference/system/xappcapture/functions/xappcapturemetadatastopstate.md)
- [XAppCapture](/reference/system/xappcapture/xappcapture_members.md)
