Share via

StreamSocket.Control Property


Gets socket control data on a StreamSocket object.

 property StreamSocketControl ^ Control { StreamSocketControl ^ get(); };
StreamSocketControl Control();
public StreamSocketControl Control { get; }
var streamSocketControl = streamSocket.control;
Public ReadOnly Property Control As StreamSocketControl

Property Value

Socket control data on a StreamSocket object.

Windows requirements

App capabilities


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

See also