Socket.UseOnlyOverlappedIO 属性

定义

注意

UseOnlyOverlappedIO has been deprecated and is not supported.

获取或设置一个值,该值指定套接字是否只应使用重叠 I/O 模式。 在 .NET 5+ (包括 .NET Core 版本),该值始终false

public:
 property bool UseOnlyOverlappedIO { bool get(); void set(bool value); };
[System.Obsolete("UseOnlyOverlappedIO has been deprecated and is not supported.")]
public bool UseOnlyOverlappedIO { get; set; }
public bool UseOnlyOverlappedIO { get; set; }
[<System.Obsolete("UseOnlyOverlappedIO has been deprecated and is not supported.")>]
member this.UseOnlyOverlappedIO : bool with get, set
member this.UseOnlyOverlappedIO : bool with get, set
Public Property UseOnlyOverlappedIO As Boolean

属性值

如果 true 仅使用重叠 I/O,则 .NET Framework 上的 Socket;否则为 false。 默认值为 false

属性

例外

套接字已绑定到完成端口。

注解

仅限 .NET Framework:将此属性设置为要为其调用 trueSocketDuplicateAndClose。 否则,框架可能会向套接字分配完成端口,这将禁止使用 DuplicateAndClose

在 .NET 5+ (包括 .NET Core)版本中,此属性的值始终false,并且无法更改其值。

适用于