System.Security.CodeAccessPermission.ToXml Method

When overridden in a derived class, creates an XML encoding of the security object and its current state.

Syntax

public abstract SecurityElement ToXml ()

Returns

An XML encoding of the security object, including any state information.

Remarks

Custom code that extends security objects needs to implement the CodeAccessPermission.ToXml and CodeAccessPermission.FromXml(SecurityElement) methods to make the objects security-encodable.

Requirements

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