SmtpPermissionAttribute Constructor (SecurityAction)
.NET Framework (current version)
Initializes a new instance of the SmtpPermissionAttribute class.
Assembly: System (in System.dll)
Parameters
- action
-
Type:
System.Security.Permissions::SecurityAction
One of the SecurityAction values that specifies the permission behavior.
| Exception | Condition |
|---|---|
| ArgumentException | action is not a valid SecurityAction. |
The security action defines which callers must have the permission.
.NET Framework
Available since 2.0
Available since 2.0
Show: