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:將此屬性 true 設定為 ,以供 Socket 您想要呼叫 DuplicateAndClose 的 。 否則,Framework 可能會將完成埠指派給通訊端,這會禁止使用 DuplicateAndClose

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

適用於