แก้ไข

แชร์ผ่าน


CodeGroup.ParseXml(SecurityElement, PolicyLevel) Method

Definition

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

protected:
 virtual void ParseXml(System::Security::SecurityElement ^ e, System::Security::Policy::PolicyLevel ^ level);
protected virtual void ParseXml (System.Security.SecurityElement e, System.Security.Policy.PolicyLevel level);
abstract member ParseXml : System.Security.SecurityElement * System.Security.Policy.PolicyLevel -> unit
override this.ParseXml : System.Security.SecurityElement * System.Security.Policy.PolicyLevel -> unit
Protected Overridable Sub ParseXml (e As SecurityElement, level As PolicyLevel)

Parameters

e
SecurityElement

The XML encoding to use to reconstruct the security object.

level
PolicyLevel

The policy level within which the code group exists.

Remarks

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(SecurityElement, PolicyLevel) method as well.

Applies to

See also