public static Socket Create(
SocketType type
)
Public Shared Function Create (
type As SocketType
) As Socket
public:
static Socket^ Create(
SocketType type
)
static member Create :
type : SocketType -> Socket
On the Linux version of .Net, the Socket(AddressFamily, SocketType, ProtocolType) constructor verifies that the address family is one of the known supported members of the AddressFamily enumeration, so this method uses PInvoke to create the socket. It is not possible to create a VSock by instantiating the Socket class directly.
As a result, some members of the Socket class, such as SocketAddressFamily and SocketSocketType, will not reflect accurate information.
SocketException | An error occurred creating a socket with type. |