> ## 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/reference/system/xgamestreaming/functions/xgamestreamingclientpropertieschangedcallback) précédemment inscrit.

## Syntaxe

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

### Paramètres

*client*   \_In\_\
Type : XGameStreamingClientId

Client de streaming dont vous souhaitez ne plus recevoir les notifications de modification de propriétés. Cet ID est généralement obtenu en tant que paramètre du [XGameStreamingConnectionStateChangedCallback](/fr/reference/system/xgamestreaming/functions/xgamestreamingconnectionstatechangedcallback).

*token*   \_In\\\
Type : XTaskQueueRegistrationToken

Jeton d'inscription fourni par [XGameStreamingRegisterClientPropertiesChanged](/fr/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 retourne pas tant que l'inscription n'a pas été révoquée et que tous les rappels en attente ne sont pas terminés.

Si `wait` a la valeur false, `XGameStreamingUnregisterClientPropertiesChanged` retourne dès que l'inscription a été révoquée. Bien qu'aucun nouveau rappel ne soit remis, un rappel en cours peut encore être en cours d'exécution 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>Cette fonction ne peut pas être appelée en toute sécurité sur un thread à durée critique. Pour plus d'informations, consultez [Threads à durée critique](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/reference/system/xgamestreaming/enums/xgamestreamingclientproperty), comme les dimensions physiques du stream, 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 à durée critique](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads)

## Voir aussi

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