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

# AddRef (XBOX One 系列)

> AddRef (XBOX One 系列) 的參考，這是 xgmemory_NR Direct3D 12 圖形 API 中的方法。在 XBOX 上保留或未使用；如需詳細資料，請參閱備註。

# XGRefCount::AddRef 方法 (XBOX One 系列)

請勿使用；僅供內部使用。

<a id="syntaxSection" />

## 語法

```cpp theme={null}
public:
LONG AddRef()  
```

<a id="ID4EP" />

### 傳回值

類型：LONG

<a id="requirements" />

## 需求

**標頭：** xgmemory.h

<a id="ID4EZ" />

**支援的平台：** XBOX One 系列

## 另請參閱

[XGRefCount](/zh-TW/reference/graphics/xgmemory_NR/interfaces/XGRefCount/xgrefcount)


## Related topics

- [NDA 主題目錄 - Microsoft Learn 線上連結](/zh-TW/nda/nda-topic-directory.md)
- [XUserAddOptions](/zh-CN/reference/system/xuser/enums/xuseraddoptions.md)
- [chat_manager::add_remote_user](/zh-CN/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_add_remote_user.md)
- [chat_manager::add_local_user](/zh-CN/reference/chat/gamechat2/classes/chat_manager/methods/chat_manager_add_local_user.md)
- [XUserAddResult](/zh-CN/reference/system/xuser/functions/xuseraddresult.md)
