Socket.UseOnlyOverlappedIO 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
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
為 ,而且您無法變更其值。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應