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

Annule l'inscription d'un [XGameStreamingClientPropertiesChangedCallback](/fr-CA/reference/system/xgamestreaming/functions/xgamestreamingclientpropertieschangedcallback) inscrit précédemment.

## Syntaxe

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

### Paramètres

*client*   \_In\_\
Type : XGameStreamingClientId

Client de diffusion en continu dont vous souhaitez cesser de recevoir les notifications de modification de propriétés. Cet ID est généralement obtenu comme paramètre du [XGameStreamingConnectionStateChangedCallback](/fr-CA/reference/system/xgamestreaming/functions/xgamestreamingconnectionstatechangedcallback).

*token*   \_In\\\
Type : XTaskQueueRegistrationToken

Jeton d'inscription fourni par [XGameStreamingRegisterClientPropertiesChanged](/fr-CA/reference/system/xgamestreaming/functions/xgamestreamingregisterclientpropertieschanged) pour le rappel qui ne doit plus être déclenché.

*wait*   \_In\_\
Type : bool

Si `wait` a la valeur true, `XGameStreamingUnregisterClientPropertiesChanged` ne retournera pas avant que l'inscription ait été révoquée et que tous les rappels en attente soient terminés.

Si `wait` a la valeur false, `XGameStreamingUnregisterClientPropertiesChanged` retournera dès que l'inscription aura été révoquée. Bien qu'aucun nouveau rappel ne soit livré, un rappel en cours peut encore s'exécuter lorsque la fonction retourne.

### Valeur de retour

Type : bool

Retourne true si l'annulation de l'inscription a réussi, false dans le cas contraire.

## Remarques

<Note>Il n'est pas sécuritaire d'appeler cette fonction sur un thread sensible au temps. Pour plus d'informations, consultez [Threads sensibles au temps](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads).</Note>

Cette API permet au jeu de cesser de recevoir son `XGameStreamingClientPropertiesChangedCallback` chaque fois qu'une [XGameStreamingClientProperty](/fr-CA/reference/system/xgamestreaming/enums/xgamestreamingclientproperty), comme les dimensions physiques de la diffusion en continu, change.

## Exemple

```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());
    }

```

## Configuration requise

**En-tête :** xgamestreaming.h

**Bibliothèque :** xgameruntime.lib

**Plateformes prises en charge :** Windows, consoles de la famille XBOX One et consoles XBOX Series

## Documentation conceptuelle

* [Threads sensibles au temps](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads)

## Voir aussi

[XGameStreamingClientProperty](/fr-CA/reference/system/xgamestreaming/enums/xgamestreamingclientproperty)
[XGameStreamingClientPropertiesChangedCallback](/fr-CA/reference/system/xgamestreaming/functions/xgamestreamingclientpropertieschangedcallback)
[XGameStreamingRegisterClientPropertiesChanged](/fr-CA/reference/system/xgamestreaming/functions/xgamestreamingregisterclientpropertieschanged)
[XGameStreaming](/fr-CA/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)
