StorePermission::FromXml Method (SecurityElement^)
.NET Framework (current version)
Reconstructs a permission with a specified state from an XML encoding.
Assembly: System (in System.dll)
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
Available since 2.0
Show: