Important
The functionality defined in this class is only available on Windows 10 and later versions.
public class HvSocketEndPoint : EndPointPublic Class HvSocketEndPoint
Inherits EndPointpublic ref class HvSocketEndPoint : public EndPointtype HvSocketEndPoint =
class
inherit EndPoint
endHyper-V sockets can be used to communicate between a host and a guest virtual machine or a silo. It also provides interoperability with VSock sockets for virtual machines running Linux.
| HvSocketEndPoint(Guid, Guid) | Initializes a new instance of the HvSocketEndPoint class. |
| HvSocketEndPoint(Guid, Int32) | Initializes a new instance of the HvSocketEndPoint class using a VSock port number. |
| AddressFamily |
Gets the address family to which the endpoint belongs.
(Overrides EndPointAddressFamily) |
| ServiceId | Gets or sets the service ID. |
| VmId | Gets or sets the virtual machine ID. |
| Create |
Creates an EndPoint instance from a SocketAddress instance.
(Overrides EndPointCreate(SocketAddress)) |
| Equals | Determines whether the specified object is equal to the current object. (Overrides ObjectEquals(Object)) |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
| GetHashCode | Serves as the default hash function. (Overrides ObjectGetHashCode) |
| GetType | Gets the Type of the current instance. (Inherited from Object) |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) |
| Serialize |
Serializes endpoint information into a SocketAddress instance.
(Overrides EndPointSerialize) |
| ToString | Returns a string that represents the current object. (Overrides ObjectToString) |