语言

StreamSocket.Control 属性

定义

获取 StreamSocket 对象上的套接字控制数据。

public:
 property StreamSocketControl ^ Control { StreamSocketControl ^ get(); };
StreamSocketControl Control();
public StreamSocketControl Control { get; }
var streamSocketControl = streamSocket.control;
Public ReadOnly Property Control As StreamSocketControl

属性值

StreamSocket 对象上的套接字控制数据。

注解

Control 属性获取与 StreamSocket 对象关联的 StreamSocketControl 实例。

使用父 StreamSocket 对象自动创建 StreamSocketControl 对象。 然后, StreamSocketControl 实例可用于获取或设置 StreamSocket 对象使用的控件数据。 StreamSocketControl 实例上的这些属性包括:

在 StreamSocket 连接之前,必须设置对 StreamSocketControl 上的属性值所做的任何更改。 因此,如果需要更改 IgnorableServerCertificateErrors、KeepAlive、NoDelay、OutboundBufferSizeInBytes、OutboundUnicastHopLimit 或 QualityOfService 属性,则必须在成功调用 StreamSocket 上的某个 ConnectAsync 方法之前进行这些更改。

适用于

另请参阅