StreamSocketListener.Control Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets socket control data on a StreamSocketListener object.
public:
property StreamSocketListenerControl ^ Control { StreamSocketListenerControl ^ get(); };
StreamSocketListenerControl Control();
public StreamSocketListenerControl Control { get; }
var streamSocketListenerControl = streamSocketListener.control;
Public ReadOnly Property Control As StreamSocketListenerControl
Property Value
Socket control data on a StreamSocketListener object.
Windows requirements
App capabilities |
ID_CAP_NETWORKING [Windows Phone]
|
Remarks
The Control property gets the StreamSocketListenerControl instance associated with a StreamSocketListener object.
A StreamSocketListenerControl object is automatically created with the parent StreamSocketListener object. The StreamSocketListenerControl instance can then be used to get or set control data used by the StreamSocketListener object. These properties on the StreamSocketControl instance include the following:
- QualityOfService - The quality of service to be set on a StreamSocket object created when a connection is received by the StreamSocketListener object.
Any changes to the StreamSocketListenerControl property values must be set before the StreamSocketListener is bound. So changes to the QualityOfService property must be set before the BindServiceNameAsync or BindEndpointAsync method is called on the StreamSocketListener.