public static TimeSpan GetConnectTimeout(
Socket socket
)Public Shared Function GetConnectTimeout (
socket As Socket
) As TimeSpanpublic:
static TimeSpan GetConnectTimeout(
Socket^ socket
)static member GetConnectTimeout :
socket : Socket -> TimeSpan This socket option was introduced in Windows 10, version 1607 (build 14393).
The behavior of this function is undefined if the socket is not a Hyper-V socket.
| ArgumentNullException | socket is . |
| ObjectDisposedException | The Socket object has been closed. |
| SocketException | An error occurred when attempting to access the socket. |