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

# XBTCRefCountedResource Release

> Decrementa a contagem de referências e retorna o novo valor. Se o novo valor for 0, o objeto será excluído.

# XBTCRefCountedResource::XBTCRefCountedResource\_Release

Decrementa a contagem de referências e retorna o novo valor. Se o novo valor for 0, o objeto será excluído.

## Sintaxe

```cpp theme={null}
 Release(  
)  
```

### Parâmetros

Nenhum.

### Valor retornado

Tipo: uint32\_t

O número de recursos restantes.

## Comentários

`XBTCRefCountedResource_Release` decrementa a contagem de referências e retorna o novo valor.  Se o novo valor for 0, o objeto será excluído.\
Para obter mais informações sobre como adicionar uma referência, confira [XBTCRefCountedResource\_AddRef](/pt-BR/reference/graphics/xbtc/interfaces/XBTCRefCountedResource/methods/xbtcrefcountedresource_addref).

## Requisitos

**Cabeçalho:** XBTC.h

**Plataformas com suporte**: consoles da família XBOX One e consoles XBOX Series

## Confira também

[XBTCRefCountedResource](/pt-BR/reference/graphics/xbtc/interfaces/XBTCRefCountedResource/xbtcrefcountedresource)
[XBTC](/pt-BR/reference/graphics/xbtc/xbtc_members)


## Related topics

- [Glossário](/pt-BR/publishing/game-publishing/glossary.md)
- [Subscribe To Matchmaking Resource](/api-reference/matchmaking/subscribe-to-matchmaking-resource.md)
- [Unsubscribe From Matchmaking Resource](/api-reference/matchmaking/unsubscribe-from-matchmaking-resource.md)
- [Subscribe To Lobby Resource](/api-reference/lobby/subscribe-to-lobby-resource.md)
- [Unsubscribe From Lobby Resource](/api-reference/lobby/unsubscribe-from-lobby-resource.md)
