ProtocolType Enumeration

May 11, 2014

Specifies the protocol that the Socket class supports.

Namespace:  System.Net.Sockets
Assembly:  System.Net (in System.Net.dll)

public enum ProtocolType

Member nameDescription
TcpThe Transmission Control Protocol (TCP).
UdpThe User Datagram Protocol (UDP). This protocol type is not supported on Windows Phone.
UnspecifiedThe protocol type is unspecified.
UnknownAn unknown protocol type.

The Socket class uses the ProtocolType enumeration to inform the Windows Sockets API of the requested protocol. Low-level driver software for the requested protocol must be present on the computer for the Socket to be created successfully.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2014 Microsoft