StreamWebSocket.Control プロパティ

定義

StreamWebSocket オブジェクトのソケット コントロール データを取得します。

public:
 property StreamWebSocketControl ^ Control { StreamWebSocketControl ^ get(); };
StreamWebSocketControl Control();
public StreamWebSocketControl Control { get; }
var streamWebSocketControl = streamWebSocket.control;
Public ReadOnly Property Control As StreamWebSocketControl

プロパティ値

StreamWebSocket オブジェクトのソケット コントロール データ。

注釈

Control プロパティは、 StreamWebSocket オブジェクトに関連付けられている StreamWebSocketControl インスタンスを取得します。

StreamWebSocketControl オブジェクトは、親 StreamWebSocket オブジェクトを使用して自動的に作成されます。 StreamWebSocketControl インスタンスを使用して、StreamWebSocket オブジェクトで使用されるコントロール データを取得または設定できます。 MessageWebSocketControl インスタンスのこれらのプロパティには、次のものが含まれます。

  • NoDelay - Nagle アルゴリズムが StreamWebSocket オブジェクトで使用されるかどうかを示す値。
  • OutboundBufferSizeInBytes - StreamWebSocket オブジェクトでデータを送信するために使用される送信バッファーのサイズ (バイト単位)。
  • ProxyCredential - StreamWebSocket オブジェクトを使用した HTTP ヘッダー認証を使用してプロキシ サーバーに対する認証に使用する資格情報。
  • ServerCredential - StreamWebSocket オブジェクトを使用した HTTP ヘッダー認証を使用して WebSocket サーバーに対する認証に使用する資格情報。
  • SupportedProtocols - 接続ハンドシェイク中にサーバーにアドバタイズされる、サポートされているサブプロトコルの一覧を追加するために使用できるコレクションを取得します。

StreamWebSocketControl プロパティ値に対する変更は、StreamWebSocket が接続される前に設定する必要があります。 その結果、NoDelayOutboundBufferSizeInBytesProxyCredentialServerCredential、または SupportedProtocols プロパティを変更する必要がある場合は、StreamWebSocketConnectAsync メソッドを正常に呼び出す前に、これらの変更が発生する必要があります。

適用対象

こちらもご覧ください