SocketPermissionAttribute.Transport Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the TransportType that is specified by this SocketPermissionAttribute.

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

Public Property Transport As String

Property Value

Type: System.String

A string that contains the TransportType that is associated with this SocketPermissionAttribute.

Exception Condition
ArgumentException

Transport is not null when you attempt to set the value. To specify more than one transport type, use an additional attribute declaration statement.

Possible string values of this property are All, Connectionless, ConnectionOriented, Tcp, and Udp.

.NET Framework
Available since 1.1
Return to top
Show: