AspNetHostingPermission.FromXml(SecurityElement) AspNetHostingPermission.FromXml(SecurityElement) AspNetHostingPermission.FromXml(SecurityElement) Method

Definition

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

Parameters

securityElement
SecurityElement SecurityElement SecurityElement

The SecurityElement containing the XML encoding to use to reconstruct the permission object.

Exceptions

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.

Applies to

See also