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

System.Security.CodeAccessPermission.ToXml Method

Returns the XML encoding of the current instance.

public abstract SecurityElement ToXml ()

Returns

A System.Security.SecurityElement containing an XML encoding of the state of the current instance.

Remarks

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.

Requirements

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