public static Socket Create(
SocketType type
)Public Shared Function Create (
type As SocketType
) As Socketpublic:
static Socket^ Create(
SocketType type
)static member Create :
type : SocketType -> Socket This method is equivalent to invoking the Socket(AddressFamily, SocketType, ProtocolType) constructor using the values of AddressFamily, type, and RawProtocol.
| SocketException | The socket could not be created. |