ProtocolType Enumeration

ProtocolType Enumeration

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Specifies the protocol that the Socket class supports.

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

Public Enumeration 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

© 2017 Microsoft