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

System.Net.SocketPermissionAttribute.Access Property

Gets or sets the network access method specified by the current instance. [Edit]

public string Access { set; get; }

Value

A string containing a network access method allowed by the current instance. Valid values are "Accept" and "Connect". [Edit]

Exceptions

TypeReason
ArgumentExceptionSocketPermissionAttribute.Access 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 .

Valid values for this property correspond to System.Net.NetworkAccess enumeration values. [Edit]

Requirements

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