This documentation is archived and is not being maintained.

SocketPermissionAttribute.Transport Property

Gets or sets the TransportType specified by this SocketPermissionAttribute.

[Visual Basic]
Public Property Transport As String
public string Transport {get; set;}
public: __property String* get_Transport();
public: __property void set_Transport(String*);
public function get Transport() : String;
public function set Transport(String);

Property Value

A string containing the TransportType associated with this SocketPermissionAttribute.


Exception Type Condition
ArgumentException Transport is not a null reference (Nothing in Visual Basic) 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, Udp.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Common Language Infrastructure (CLI) Standard

See Also

SocketPermissionAttribute Class | SocketPermissionAttribute Members | System.Net Namespace