Returns the XML encoding of the current instance.
A System.Security.SecurityElement containing an XML encoding of the state of the current instance.
Operation
The object returned by this method is required to use the XML encoding for the System.Security.CodeAccessPermission class as defined on the class page. The state of the current instance is required to be reproducible by invoking CodeAccessPermission.FromXml(SecurityElement) on an instance of System.Security.CodeAccessPermission using the object returned by this method.Note to Inheritors
Override this method to return an object containing the XML encoding for types derived from System.Security.CodeAccessPermission .Usage
This method is called by the system.
Namespace: System.Security
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0