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
[C#]
public string Transport {get; set;}
[C++]
public: __property String* get_Transport();
public: __property void set_Transport(String*);
[JScript]
public function get Transport() : String;
public function set Transport(String);

Property Value

A string containing the TransportType associated with this SocketPermissionAttribute.

Exceptions

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.

Remarks

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

Requirements

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

Show: