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

# XGameStreamingUnregisterClientPropertiesChanged

> XGameStreamingUnregisterClientPropertiesChanged

# XGameStreamingUnregisterClientPropertiesChanged

Cancela o registro de um [XGameStreamingClientPropertiesChangedCallback](/pt-BR/reference/system/xgamestreaming/functions/xgamestreamingclientpropertieschangedcallback) registrado anteriormente.

## Sintaxe

```cpp theme={null}
bool XGameStreamingUnregisterClientPropertiesChanged(
         XGameStreamingClientId client,
         XTaskQueueRegistrationToken token,
         bool wait
)
```

### Parâmetros

*client*   \_In\_\
Tipo: XGameStreamingClientId

O cliente de streaming do qual cancelar a assinatura das notificações de alteração de propriedades. Normalmente, essa ID é obtida como parâmetro de [XGameStreamingConnectionStateChangedCallback](/pt-BR/reference/system/xgamestreaming/functions/xgamestreamingconnectionstatechangedcallback).

*token*   \_In\\\
Tipo: XTaskQueueRegistrationToken

O token de registro fornecido por [XGameStreamingRegisterClientPropertiesChanged](/pt-BR/reference/system/xgamestreaming/functions/xgamestreamingregisterclientpropertieschanged) para o retorno de chamada que não deve mais ser disparado.

*wait*   \_In\_\
Tipo: bool

Se `wait` for definido como true, `XGameStreamingUnregisterClientPropertiesChanged` não retornará até que o registro tenha sido revogado e todos os retornos de chamada pendentes tenham sido concluídos.

Se `wait` for definido como false, `XGameStreamingUnregisterClientPropertiesChanged` retornará assim que o registro for revogado. Embora nenhum novo retorno de chamada seja entregue, um retorno de chamada em andamento ainda pode estar em execução quando a função retornar.

### Valor retornado

Tipo: bool

Retornará true se o cancelamento do registro tiver sido bem-sucedido ou false se não tiver sido.

## Comentários

<Note>Não é seguro chamar esta função em um thread sensível ao tempo. Para obter mais informações, consulte [Threads sensíveis ao tempo](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads).</Note>

Esta API permite que o jogo pare de receber o `XGameStreamingClientPropertiesChangedCallback` sempre que uma [XGameStreamingClientProperty](/pt-BR/reference/system/xgamestreaming/enums/xgamestreamingclientproperty), como as dimensões físicas do stream, for alterada.

## Exemplo

```cpp theme={null}
    // On client disconnection remove from list of client and do per client cleanup
    void OnClientDisconnected(XGameStreamingClientId client)
    {
        StreamingClient connectedClient;
        GetConnectedClient(client, &connectedClient);

        // unregister the client property changed handler
        XGameStreamingUnregisterClientPropertiesChanged(client, connectedClient.propertyChangeToken, true);
        std::erase(std::remove(m_streamingClients.begin(), m_streamingClients.end(), connectedClient), m_streamingClients.end());
    }

```

## Requisitos

**Cabeçalho:** xgamestreaming.h

**Biblioteca:** xgameruntime.lib

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

## Documentação conceitual

* [Threads sensíveis ao tempo](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads)

## Confira também

[XGameStreamingClientProperty](/pt-BR/reference/system/xgamestreaming/enums/xgamestreamingclientproperty)
[XGameStreamingClientPropertiesChangedCallback](/pt-BR/reference/system/xgamestreaming/functions/xgamestreamingclientpropertieschangedcallback)
[XGameStreamingRegisterClientPropertiesChanged](/pt-BR/reference/system/xgamestreaming/functions/xgamestreamingregisterclientpropertieschanged)
[XGameStreaming](/pt-BR/reference/system/xgamestreaming/xgamestreaming_members)


## Related topics

- [XGameStreamingUnregisterClientPropertiesChanged](/ja-jp/reference/system/xgamestreaming/functions/xgamestreamingunregisterclientpropertieschanged.md)
- [XGameStreamingRegisterClientPropertiesChanged](/reference/system/xgamestreaming/functions/xgamestreamingregisterclientpropertieschanged.md)
- [XGameStreamingClientPropertiesChangedCallback](/reference/system/xgamestreaming/functions/xgamestreamingclientpropertieschangedcallback.md)
