Dela via


StreamWebSocket.Control Property

Definition

Gets socket control data on a StreamWebSocket object.

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

Property Value

Socket control data on a StreamWebSocket object.

Remarks

The Control property gets the StreamWebSocketControl instance associated with a StreamWebSocket object.

A StreamWebSocketControl object is automatically created with the parent StreamWebSocket object. The StreamWebSocketControl instance can then be used to get or set control data used by the StreamWebSocket object. These properties on the MessageWebSocketControl instance include the following:

Any changes to the StreamWebSocketControl property values must be set before the StreamWebSocket is connected. As a result if you need to make changes to the NoDelay, OutboundBufferSizeInBytes, ProxyCredential, ServerCredential, or SupportedProtocols properties, then these changes must occur before a successful call to the ConnectAsync method on the StreamWebSocket.

Applies to

See also