GacIdentityPermission::FromXml Method (SecurityElement^)
.NET Framework (current version)
Creates a permission from an XML encoding.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- securityElement
-
Type:
System.Security::SecurityElement^
A SecurityElement that contains the XML encoding to use to create the permission.
| Exception | Condition |
|---|---|
| ArgumentNullException | securityElementis null. |
| ArgumentException | securityElement is not a valid permission element. -or- The version number of securityElement is not valid. |
The FromXml method creates a GacIdentityPermission from an XML encoding defined by a SecurityElement object. Use the ToXml method to XML-encode the GacIdentityPermission, including state information.
.NET Framework
Available since 2.0
Available since 2.0
Show: