Skip to main content

Windows Dev Center

StreamSocket.Control | control property

Gets socket control data on a StreamSocket object.

Syntax


var control = streamSocket.control;

public StreamSocketControl Control { get; }

Public ReadOnly Property Control As StreamSocketControl

public:
property StreamSocketControl^ Control { 
   StreamSocketControl^ get();
}

Property value

Type: StreamSocketControl

Socket control data on a StreamSocket object.

Remarks

The Control property gets the StreamSocketControl instance associated with a StreamSocket object.

A StreamSocketControl object is automatically created with the parent StreamSocket object. The StreamSocketControl instance can then be used to get or set control data used by the StreamSocket object. These properties on the StreamSocketControl instance include the following:

Any changes to the property values on the StreamSocketControl must be set before the StreamSocket is connected. As a result if you need to make changes to the IgnorableServerCertificateErrors, KeepAlive, NoDelay, OutboundBufferSizeInBytes , OutboundUnicastHopLimit, or QualityOfService properties, then these changes must occur before a successful call to one of the ConnectAsync methods on the StreamSocket.

Requirements ( 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

ID_CAP_NETWORKING [Windows Phone]

Requirements (operating system)

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
Reference
IgnorableServerCertificateErrors
KeepAlive
NoDelay
OutboundBufferSizeInBytes
OutboundUnicastHopLimit
QualityOfService
StreamSocket
StreamSocketControl