SocketPermissionAttribute Constructor (SecurityAction)
.NET Framework (current version)
Initializes a new instance of the SocketPermissionAttribute class with the specified SecurityAction value.
Assembly: System (in System.dll)
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
Available since 1.1
Show: