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); };
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

属性值

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

属性

例外

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

注解

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

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

适用于