Muokkaa

Jaa


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
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.

Applies to

See also