Share via


StreamSocketListener.Control 属性

定义

获取 StreamSocketListener 对象上的套接字控件数据。

public:
 property StreamSocketListenerControl ^ Control { StreamSocketListenerControl ^ get(); };
StreamSocketListenerControl Control();
public StreamSocketListenerControl Control { get; }
var streamSocketListenerControl = streamSocketListener.control;
Public ReadOnly Property Control As StreamSocketListenerControl

属性值

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

Windows 要求

应用功能
ID_CAP_NETWORKING [Windows Phone]

注解

Control 属性获取与 StreamSocketListener 对象关联的 StreamSocketListenerControl 实例。

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

在绑定 StreamSocketListener 之前,必须设置对 StreamSocketListener 属性值 所做的任何更改。 因此,在 StreamSocketListener 上调用 BindServiceNameAsyncBindEndpointAsync 方法之前,必须设置对 QualityOfService 属性的更改。

适用于

另请参阅