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實例上的這些屬性包括下列各項:

StreamWebSocketControl屬性值的任何變更都必須在StreamWebSocket連線之前設定。 因此,如果您需要對NoDelayOutboundBufferSizeInBytesProxyCredential、ServerCredentialSupportedProtocols屬性進行變更,則必須在StreamWebSocket上成功呼叫ConnectAsync方法之前發生這些變更。

適用於

另請參閱