Mono Class Library: System.Security.PermissionSet Overview | Members

System.Security.PermissionSet.FromXml Method

Reconstructs the state of a System.Security.PermissionSet object using the specified XML encoding.

public virtual void FromXml (SecurityElement et)

Parameters

et
A System.Security.SecurityElement instance containing the XML encoding to use to reconstruct the state of a System.Security.PermissionSet object.

Exceptions

TypeReason
ArgumentNullExceptionet 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