> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XGameStreamingUnregisterClientPropertiesChanged

> XGameStreamingUnregisterClientPropertiesChanged

# XGameStreamingUnregisterClientPropertiesChanged

Annule l'inscription d'un [XGameStreamingClientPropertiesChangedCallback](https://docs.xbox.com/fr-CA/reference/system/xgamestreaming/functions/xgamestreamingclientpropertieschangedcallback.md) 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](https://docs.xbox.com/fr-CA/reference/system/xgamestreaming/functions/xgamestreamingconnectionstatechangedcallback.md).

*token*   \_In\\\
Type : XTaskQueueRegistrationToken

Jeton d'inscription fourni par [XGameStreamingRegisterClientPropertiesChanged](https://docs.xbox.com/fr-CA/reference/system/xgamestreaming/functions/xgamestreamingregisterclientpropertieschanged.md) 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).

Cette API permet au jeu de cesser de recevoir son `XGameStreamingClientPropertiesChangedCallback` chaque fois qu'une [XGameStreamingClientProperty](https://docs.xbox.com/fr-CA/reference/system/xgamestreaming/enums/xgamestreamingclientproperty.md), 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](https://docs.xbox.com/fr-CA/reference/system/xgamestreaming/enums/xgamestreamingclientproperty.md)
[XGameStreamingClientPropertiesChangedCallback](https://docs.xbox.com/fr-CA/reference/system/xgamestreaming/functions/xgamestreamingclientpropertieschangedcallback.md)
[XGameStreamingRegisterClientPropertiesChanged](https://docs.xbox.com/fr-CA/reference/system/xgamestreaming/functions/xgamestreamingregisterclientpropertieschanged.md)
[XGameStreaming](https://docs.xbox.com/fr-CA/reference/system/xgamestreaming/xgamestreaming_members.md)


## Related topics

- [XGameStreamingClientPropertiesChangedCallback](https://docs.xbox.com/fr-CA/reference/system/xgamestreaming/functions/xgamestreamingclientpropertieschangedcallback.md)
- [XGameStreamingRegisterClientPropertiesChanged](https://docs.xbox.com/fr-CA/reference/system/xgamestreaming/functions/xgamestreamingregisterclientpropertieschanged.md)
- [XGameStreamingClientProperty](https://docs.xbox.com/fr-CA/reference/system/xgamestreaming/enums/xgamestreamingclientproperty.md)
- [XGameStreaming (contenu de l'API)](https://docs.xbox.com/fr-CA/reference/system/xgamestreaming/xgamestreaming_members.md)
- [Utilisation des wrappers C# pour les API du GDK dans votre projet Unity](https://docs.xbox.com/fr-CA/build/gdk-and-engines/unity/unity-api-wrappers.md)
