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

System.Security.CodeAccessPermission.FromXml Method

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

public abstract void FromXml (SecurityElement elem)

Parameters

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

Exceptions

TypeReason
ArgumentException

elem does not contain the XML encoding for a instance of the same type as the current instance.

-or-

The version number of elem is not valid.

Remarks

Operation
The values of the current instance are set to the values of the permission object encoded in elem .

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

Usage
This method is called by the system.

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

Requirements

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