System.Net.Sockets.SocketAsyncEventArgs.DisconnectReuseSocket Property

Gets or sets a value that specifies if socket can be reused after a disconnect operation.

Syntax

public bool DisconnectReuseSocket { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

This property is used to alter the behavior of Socket.DisconnectAsync(SocketAsyncEventArgs) method. If true, a socket disconnected by the Socket.DisconnectAsync(SocketAsyncEventArgs) method can be reused after disconnect completion in subsequent socket accept or connect operations.

Requirements

Namespace: System.Net.Sockets
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0