Socket.UseOnlyOverlappedIO Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
UseOnlyOverlappedIO has been deprecated and is not supported.
Gets or sets a value that specifies whether the socket should only use Overlapped I/O mode. On .NET 5+ (including .NET Core versions), the value is always false
.
public:
property bool UseOnlyOverlappedIO { bool get(); void set(bool value); };
public bool UseOnlyOverlappedIO { get; set; }
[System.Obsolete("UseOnlyOverlappedIO has been deprecated and is not supported.")]
public bool UseOnlyOverlappedIO { get; set; }
member this.UseOnlyOverlappedIO : bool with get, set
[<System.Obsolete("UseOnlyOverlappedIO has been deprecated and is not supported.")>]
member this.UseOnlyOverlappedIO : bool with get, set
Public Property UseOnlyOverlappedIO As Boolean
Property Value
true
on .NET Framework if the Socket uses only overlapped I/O; otherwise, false
. The default is false
.
- Attributes
Exceptions
The socket has been bound to a completion port.
Remarks
.NET Framework only: Set this property to true
for a Socket you intend to call DuplicateAndClose on. Otherwise, the Framework may assign a completion port to the socket, which would prohibit the use of DuplicateAndClose.
On .NET 5+ (include .NET Core) versions, the value of this property is always false
, and you cannot change its value.