System.Net.SocketPermissionAttribute.Access Property

Gets or sets the network access method that is allowed by this System.Net.SocketPermissionAttribute.

Syntax

public string Access { get; set; }

Value

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

Exceptions

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

Remarks

This property is write-once. Valid values for this property correspond to System.Net.NetworkAccess enumeration values.

Requirements

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