public static int GetPeerHostVmId(
Socket socket
)
Public Shared Function GetPeerHostVmId (
socket As Socket
) As Integer
public:
static int GetPeerHostVmId(
Socket^ socket
)
static member GetPeerHostVmId :
socket : Socket -> int
This option is only available for hypervisor endpoints.
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. |