System.Net.Mail.SmtpPermission Members

The members of System.Net.Mail.SmtpPermission are listed below.

See Also: Inherited members from System.Security.CodeAccessPermission

Public Constructors

Initializes a new instance of the System.Net.Mail.SmtpPermission class with the specified state.

Initializes a new instance of the System.Net.Mail.SmtpPermission class using the specified access level.

Initializes a new instance of the System.Net.Mail.SmtpPermission class using the specified permission state value.

Public Properties

[read-only]
AccessSmtpAccess.

Gets the level of access to SMTP servers controlled by the permission.

Public Methods

AddPermission(SmtpAccess)

Adds the specified access level value to the permission.

override
Copy() : System.Security.IPermission

Creates and returns an identical copy of the current permission.

override
FromXml(System.Security.SecurityElement)

Sets the state of the permission using the specified XML encoding.

override
Intersect(System.Security.IPermission) : System.Security.IPermission

Creates and returns a permission that is the intersection of the current permission and the specified permission.

override
IsSubsetOf(System.Security.IPermission) : bool

Returns a value indicating whether the current permission is a subset of the specified permission.

IsUnrestricted() : bool

Returns a value indicating whether the current permission is unrestricted.

override
ToXml() : System.Security.SecurityElement

Creates an XML encoding of the state of the permission.

override
Union(System.Security.IPermission) : System.Security.IPermission

Creates a permission that is the union of the current permission and the specified permission.