This topic has not yet been rated - Rate this topic

DatagramSocket.Control | control property

Gets socket control data on a DatagramSocket object.

Syntax


public DatagramSocketControl Control { get; }

Property value

Type: DatagramSocketControl

Socket control data on a DatagramSocket object.

Remarks

The Control property gets the DatagramSocketControl instance associated with a DatagramSocket object. The DatagramSocketControl instance can then be used to get or set control data used by the DatagramSocket. The only control data supported is the QualityOfService property which indicates the quality of service that DatagramSocket object should provide.

Any changes to the DatagramSocketControl property values must be set before the DatagramSocket is bound or connected. So changes to the QualityOfService property must be set before the BindEndpointAsync, BindServiceNameAsync, or one of the ConnectAsync methods is called on the DatagramSocket.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

Windows.Networking.Sockets
Windows::Networking::Sockets [C++]

Metadata

Windows.winmd

DLL

Windows.Networking.dll

Capabilities

ID_CAP_NETWORKING [Windows Phone]

See also

DatagramSocket
DatagramSocketControl
How to use advanced socket controls

 

 

Build date: 2/25/2013

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.