FromXml Method
Collapse the table of content
Expand the table of content

ISecurityPolicyEncodable.FromXml Method (SecurityElement, PolicyLevel)


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

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

void FromXml(
	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 context to resolve named permission set references.

Custom code that extends security policy objects needs to implement the ToXml and FromXml methods to make the objects security-encodable.

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