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

以前に登録された [XGameStreamingClientPropertiesChangedCallback](https://docs.xbox.com/ja-jp/reference/system/xgamestreaming/functions/xgamestreamingclientpropertieschangedcallback.md) の登録を解除します。

## Syntax

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

### Parameters

*client*   \_In\_\
型: XGameStreamingClientId

プロパティ変更通知の登録を解除するストリーミング クライアント。この ID は通常、[XGameStreamingConnectionStateChangedCallback](https://docs.xbox.com/ja-jp/reference/system/xgamestreaming/functions/xgamestreamingconnectionstatechangedcallback.md) のパラメーターとして取得されます。

*token*   \_In\\\
型: XTaskQueueRegistrationToken

もはや発火させないコールバックのために [XGameStreamingRegisterClientPropertiesChanged](https://docs.xbox.com/ja-jp/reference/system/xgamestreaming/functions/xgamestreamingregisterclientpropertieschanged.md) から提供された登録トークン。

*wait*   \_In\_\
型: bool

`wait` を true に設定すると、登録が取り消され、進行中のコールバックが完了するまで `XGameStreamingUnregisterClientPropertiesChanged` は戻りません。

`wait` を false に設定すると、登録が取り消され次第 `XGameStreamingUnregisterClientPropertiesChanged` が戻ります。新しいコールバックは配信されませんが、関数が戻る時点で実行中のコールバックがまだ実行されている場合があります。

### Return value

型: bool

登録解除が成功した場合は true、成功しなかった場合は false を返します。

## Remarks

> [!NOTE]
>
> この関数は、時間的制約のあるスレッドで呼び出すには安全ではありません。詳細については、[時間的制約のあるスレッド](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads)を参照してください。

この API を使用すると、ストリームの物理的な寸法などの [XGameStreamingClientProperty](https://docs.xbox.com/ja-jp/reference/system/xgamestreaming/enums/xgamestreamingclientproperty.md) が変更されるたびに `XGameStreamingClientPropertiesChangedCallback` を受け取らないようにできます。

## Example

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

```

## Requirements

**ヘッダー:** xgamestreaming.h

**ライブラリ:** xgameruntime.lib

**サポートされているプラットフォーム:** Windows、XBOX One ファミリー本体および XBOX Series 本体

## Conceptual documentation

* [時間的制約のあるスレッド](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads)

## See also

[XGameStreamingClientProperty](https://docs.xbox.com/ja-jp/reference/system/xgamestreaming/enums/xgamestreamingclientproperty.md)
[XGameStreamingClientPropertiesChangedCallback](https://docs.xbox.com/ja-jp/reference/system/xgamestreaming/functions/xgamestreamingclientpropertieschangedcallback.md)
[XGameStreamingRegisterClientPropertiesChanged](https://docs.xbox.com/ja-jp/reference/system/xgamestreaming/functions/xgamestreamingregisterclientpropertieschanged.md)
[XGameStreaming](https://docs.xbox.com/ja-jp/reference/system/xgamestreaming/xgamestreaming_members.md)


## Related topics

- [XGameStreamingClientPropertiesChangedCallback](https://docs.xbox.com/ja-jp/reference/system/xgamestreaming/functions/xgamestreamingclientpropertieschangedcallback.md)
- [XGameStreamingRegisterClientPropertiesChanged](https://docs.xbox.com/ja-jp/reference/system/xgamestreaming/functions/xgamestreamingregisterclientpropertieschanged.md)
- [XGameStreamingClientProperty](https://docs.xbox.com/ja-jp/reference/system/xgamestreaming/enums/xgamestreamingclientproperty.md)
- [XGameStreaming (API の内容)](https://docs.xbox.com/ja-jp/reference/system/xgamestreaming/xgamestreaming_members.md)
- [Unity プロジェクトでの GDK API 用 C# ラッパーの使用](https://docs.xbox.com/ja-jp/build/gdk-and-engines/unity/unity-api-wrappers.md)
