StreamSocket.Control StreamSocket.Control StreamSocket.Control StreamSocket.Control StreamSocket.Control Property


Gets socket control data on a StreamSocket object.

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

Property Value

Additional features and requirements



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.

See also