System.Security.Policy.CodeGroup.ParseXml Method

When overridden in a derived class, reconstructs properties and internal state specific to a derived code group from the specified System.Security.SecurityElement.

Syntax

protected virtual void ParseXml (System.Security.SecurityElement e, PolicyLevel level)

Parameters

e
The XML encoding to use to reconstruct the security object.
level
The policy level within which the code group exists.

Remarks

CodeGroup.FromXml(System.Security.SecurityElement) cannot be overridden. If you need to deserialize members specific to a particular implementation of System.Security.Policy.CodeGroup, you must override CodeGroup.ParseXml(System.Security.SecurityElement, PolicyLevel) and deserialize your members there. When the code group is deserialized, CodeGroup.FromXml(System.Security.SecurityElement) calls CodeGroup.ParseXml(System.Security.SecurityElement, PolicyLevel) and reconstructs your members from the System.Security.SecurityElement.

This method deserializes XML created using CodeGroup.CreateXml(System.Security.SecurityElement, PolicyLevel).

Requirements

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