System.Security.PermissionSet.FromXml Method

Reconstructs a security object with a specified state from an XML encoding.

Syntax

public virtual void FromXml (SecurityElement et)

Parameters

et
The XML encoding to use to reconstruct the security object.

Exceptions

TypeReason
ArgumentNullException et is null.
ArgumentException

et does not contain an XML encoding for a System.Security.PermissionSet instance.

-or-

An error occurred while reconstructing et .

Remarks

Note: For the XML encoding for this class, see the System.Security.PermissionSet class page.

Operation
When this call completes, the objects in the current instance are required to be identical to the objects in the System.Security.PermissionSet encoded in et .

Note to Inheritors
Override this method to reconstruct subclasses of System.Security.PermissionSet .

Usage
Applications do not typically call this method; it is called by the system.

Requirements

Namespace: System.Security
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0