public static void SetConnectTimeout(
Socket socket,
TimeSpan timeout
)
Public Shared Sub SetConnectTimeout (
socket As Socket,
timeout As TimeSpan
)
public:
static void SetConnectTimeout(
Socket^ socket,
TimeSpan timeout
)
static member SetConnectTimeout :
socket : Socket *
timeout : TimeSpan -> unit
The behavior of this function is undefined if the socket is not a VSock socket.
ArgumentNullException | socket is . |
ObjectDisposedException | The Socket object has been closed. |
SocketException | An error occurred when attempting to access the socket. |