SocketPermissionAttribute Constructor
Collapse the table of content
Expand the table of content

SocketPermissionAttribute Constructor (SecurityAction)

 

Initializes a new instance of the SocketPermissionAttribute class with the specified SecurityAction value.

Namespace:   System.Net
Assembly:  System (in System.dll)

public SocketPermissionAttribute(
	SecurityAction action
)

Parameters

action
Type: System.Security.Permissions.SecurityAction

One of the SecurityAction values.

Exception Condition
ArgumentException

action is not a valid SecurityAction value.

The SecurityAction value that is passed to this constructor specifies the allowable SocketPermissionAttribute targets.

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft