Important
The functionality defined in this class is only available on Windows 10 and later versions.
public static class HvSocketPublic NotInheritable Class HvSocketpublic ref class HvSocket abstract sealed[<AbstractClassAttribute>]
[<SealedAttribute>]
type HvSocket = class end| Create | Creates a new Hyper-V socket. |
| CreateVSockServiceId | Maps the port number of a Linux VSock socket to a service ID for a Hyper-V socket. |
| GetConnectedSuspend | Gets the socket connected suspend option. |
| GetConnectTimeout | Gets the connection timeout for the socket. |
| GetContainerPassthru | Gets the container pass-through socket option. |
| GetHighVtl | Gets the socket high VTL option. |
| SetConnectedSuspend | Sets the socket connected suspend option. |
| SetConnectTimeout | Sets the connection timeout for the socket. |
| SetContainerPassthru | Sets the container pass-through socket option. |
| SetHighVtl | Sets the socket high VTL option. |
| AddressFamily | The address family for Hyper-V sockets, also known as AF_HYPERV. |
| RawProtocol | The protocol type that must be used when creating Hyper-V sockets. |
| SocketAddressSize | The size, in bytes, of the SOCKADDR_HV structure, used to describe Hyper-V socket addresses. |
| VSockTemplate | Template to facilitate a mapping between the service ID of a Hyper-V socket and the port number of a Linux VSock socket. |