Partager via


ProtocolType Enumeration

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Specifies the protocol that the Socket class supports.

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

Syntax

'Declaration
Public Enumeration ProtocolType
public enum ProtocolType

Members

Member name Description
Supported by Silverlight for Windows Phone Tcp The Transmission Control Protocol (TCP).
Supported by Silverlight for Windows Phone Unspecified The protocol type is unspecified.
Supported by Silverlight for Windows Phone Unknown An unknown protocol type.
Supported by Silverlight for Windows Phone Udp The User Datagram Protocol (UDP). This protocol type is not supported on Silverlight for the desktop.

Remarks

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.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

See Also

Reference