Share via


StreamSocket.Control Property

Definition

Gets socket control data on a StreamSocket object.

public StreamSocketControl Control { get; }

Property Value

Socket control data on a StreamSocket object.

Windows requirements

App capabilities
ID_CAP_NETWORKING [Windows Phone]

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.

Applies to

Product Versions
WinRT Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100

See also