System.Net.Mail.SmtpPermission.AddPermission Method

Adds the specified access level value to the permission.

Syntax

public void AddPermission (SmtpAccess access)

Parameters

access
One of the System.Net.Mail.SmtpAccess values.

Remarks

Use this method to modify access to Simple Mail Transport Protocol servers by adding to the state of this permission instance.

Requirements

Namespace: System.Net.Mail
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0