Reconstructs the state of a System.Security.CodeAccessPermission object using the specified XML encoding.
- elem
- A System.Security.SecurityElement instance containing the XML encoding to use to reconstruct the state of a System.Security.CodeAccessPermission object.
Type Reason 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.
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.
Namespace: System.Security
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0