SmtpPermission::FromXml Method (SecurityElement^)
.NET Framework (current version)
Sets the state of the permission using the specified XML encoding.
Assembly: System (in System.dll)
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
Available since 2.0
Show: