SmtpPermission.FromXml Method (SecurityElement)

 

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

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

Public Overrides Sub FromXml (
	securityElement As SecurityElement
)

Parameters

securityElement
Type: System.Security.SecurityElement

The XML encoding to use to set the state of the current permission.

Exception Condition
ArgumentException

securityElement does not describe an SmtpPermission object.

-or-

securityElement does not contain the required state information to reconstruct the permission.

ArgumentNullException

securityElement is null.

This method is used by the security system and is not normally called by application code.

.NET Framework
Available since 2.0
Return to top
Show: