System.Security.ISecurityPolicyEncodable.FromXml Method

Reconstructs a security object with a specified state from an XML encoding.

Syntax

public void FromXml (SecurityElement e, System.Security.Policy.PolicyLevel level)

Parameters

e
The XML encoding to use to reconstruct the security object.
level
The policy-level context to resolve named permission set references.

Remarks

Custom code that extends security policy objects needs to implement the ISecurityPolicyEncodable.ToXml(System.Security.Policy.PolicyLevel) and ISecurityPolicyEncodable.FromXml(SecurityElement, System.Security.Policy.PolicyLevel) 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