AspNetHostingPermission.FromXml(SecurityElement) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Reconstructs a permission object with a specified state from an XML encoding.
public:
override void FromXml(System::Security::SecurityElement ^ securityElement);
public override void FromXml(System.Security.SecurityElement securityElement);
override this.FromXml : System.Security.SecurityElement -> unit
Public Overrides Sub FromXml (securityElement As SecurityElement)
Parameters
- securityElement
- SecurityElement
The SecurityElement containing the XML encoding to use to reconstruct the permission object.
Exceptions
securityElement is null.
The Tag property of securityElement is not equal to "IPermission".
-or-
The class Attribute(String) of securityElement is null or an empty string ("").
Remarks
For details about formatting the XML representation of permission object state, see Implementing a Custom Permission.