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 | |
---|---|---|
Tcp | The Transmission Control Protocol (TCP). | |
Unspecified | The protocol type is unspecified. | |
Unknown | An unknown protocol type. | |
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.