System.Net.SocketPermissionAttribute.Transport Property

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

Syntax

public string Transport { get; set; }

Value

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

Exceptions

TypeReason
ArgumentException SocketPermissionAttribute.Transport is being set and is not null.

Remarks

Requirements

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