Socket.UseOnlyOverlappedIO Socket.UseOnlyOverlappedIO Socket.UseOnlyOverlappedIO Socket.UseOnlyOverlappedIO Property

定义

指定套接字是否应仅使用重叠 I/O 模式。Specifies whether the socket should only use Overlapped I/O mode.

public:
 property bool UseOnlyOverlappedIO { bool get(); void set(bool value); };
public bool UseOnlyOverlappedIO { get; set; }
member this.UseOnlyOverlappedIO : bool with get, set
Public Property UseOnlyOverlappedIO As Boolean

属性值

如果 Socket 仅使用重叠 I/O,则为 true;否则为 falsetrue if the Socket uses only overlapped I/O; otherwise, false. 默认值为 falseThe default is false.

异常

套接字已绑定到完成端口。The socket has been bound to a completion port.

注解

将此属性设置为true有关Socket想要调用DuplicateAndCloseSet this property to true for a Socket you intend to call DuplicateAndClose. 否则,该框架可以将完成端口分配给套接字,将禁止使用DuplicateAndCloseOtherwise, the Framework may assign a completion port to the socket, which would prohibit the use of DuplicateAndClose.

适用于