Mono Class Library: System.Net.SocketPermissionAttribute Overview | Members

System.Net.SocketPermissionAttribute.Transport Property

Gets or sets the transport type specified by the current instance. [Edit]

public string Transport { set; get; }

Value

A string containing the transport type associated with the current instance. Valid values are "All", "Connectionless", "ConnectionOriented", "Tcp", and "Udp". [Edit]

Exceptions

TypeReason
ArgumentExceptionSocketPermissionAttribute.Transport is being set and is not null. [Edit]

Remarks

This property is write-once. Once this property has been set to a non-null value, attempts to set this property to new value cause a ArgumentException .

Note: Valid values for this property correspond to System.Net.TransportType enumeration values.
[Edit]

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0