SmtpPermission.AddPermission Method (SmtpAccess)

 

Adds the specified access level value to the permission.

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

Public Sub AddPermission (
	access As SmtpAccess
)

Parameters

access
Type: System.Net.Mail.SmtpAccess

One of the SmtpAccess values.

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

The following code example adds Connect access to a permission object.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: