SmtpPermissionAttribute Constructor (SecurityAction)

 

Initializes a new instance of the SmtpPermissionAttribute class.

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

public SmtpPermissionAttribute(
	SecurityAction action
)

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
Return to top
Show: