语言

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 实例上的这些属性包括:

在 StreamWebSocket 连接之前,必须设置对 StreamWebSocketControl 属性值所做的任何更改。 因此,如果需要对 NoDelay、OutboundBufferSizeInBytes、ProxyCredential、ServerCredential 或 SupportedProtocols 属性进行更改,则必须在成功调用 StreamWebSocket 上的 ConnectAsync 方法之前进行这些更改。

适用于

另请参阅