StorePermission::FromXml Method (SecurityElement^)

 

Reconstructs a permission with a specified state from an XML encoding.

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

public:
virtual void FromXml(
	SecurityElement^ securityElement
) override

Parameters

securityElement
Type: System.Security::SecurityElement^

A SecurityElement that contains the XML encoding to use to reconstruct the permission.

Exception Condition
ArgumentNullException

securityElement is null.

ArgumentException

securityElement is not a valid permission element.

-or-

The version number in securityElement is not valid.

The FromXml method reconstructs a StorePermission object from an XML encoding defined by the SecurityElement class. Use the ToXml method to XML-encode the StorePermission, including state information.

.NET Framework
Available since 2.0
Return to top
Show: