共用方式為


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 .NET Framework 如果 只使用重疊的 I/O,則為 ,否則false為 。 預設值為 false

屬性

例外狀況

通訊端已繫結至完成通訊埠。

備註

只限 .NET Framework:將此屬性true設定為 ,以供Socket您想要呼叫DuplicateAndClose的 。 否則,Framework 可能會將完成埠指派給套接字,這會禁止使用 DuplicateAndClose

在 .NET 5+ (包含 .NET Core) 版本上,此屬性的值一律 false為 ,而且您無法變更其值。

適用於