ParseXml Method
Collapse the table of content
Expand the table of content

CodeGroup.ParseXml Method (SecurityElement, PolicyLevel)


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

Namespace:   System.Security.Policy
Assembly:  mscorlib (in mscorlib.dll)

protected virtual void ParseXml(
	SecurityElement e,
	PolicyLevel level


Type: System.Security.SecurityElement

The XML encoding to use to reconstruct the security object.

Type: System.Security.Policy.PolicyLevel

The policy level within which the code group exists.

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

This method deserializes XML created using CreateXml.

Notes to Inheritors:

If you implement this method, you must implement the CreateXml method as well.

.NET Framework
Available since 1.1
Return to top
© 2016 Microsoft