Skip to main content

Windows Dev Center

DatagramSocketControl.QualityOfService | qualityOfService property

Gets or sets the quality of service on a DatagramSocket object.

Syntax


var qualityOfService = datagramSocketControl.qualityOfService;
datagramSocketControl.qualityOfService = qualityOfService;

public SocketQualityOfService QualityOfService { get; set; }

Public Property QualityOfService As SocketQualityOfService

public:
property SocketQualityOfService QualityOfService { 
   SocketQualityOfService get();
   void set (SocketQualityOfService value);
}

Property value

Type: SocketQualityOfService

The quality of service on a DatagramSocket object. The default is normal.

Remarks

This QualityOfService property is the quality of service that DatagramSocket object should provide. The default value is normal.

When the property is set to a value other than normal, the socket will follow a policy to provide the specified quality of service. When the property is set to lowLatency, this sets the thread priority of the incoming packets to a higher value. The lowLatency value would commonly be used for audio or similar apps that are timing sensitive. This property is not normally set for other apps.

This property may be set before the DatagramSocket is bound or connected. After the DatagramSocket is bound or connected, setting this property will result in an error.

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.UniversalApiContract.winmd

Capabilities

Requirements (Windows 8.x and Windows Phone 8.x)

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

Capabilities

ID_CAP_NETWORKING [Windows Phone]

See also

Other resources
How to use advanced socket controls (HTML)
How to use advanced socket controls (XAML)
Reference
DatagramSocket
DatagramSocketControl