NamedPermissionSet::FromXml Method (SecurityElement^)
.NET Framework (current version)
Reconstructs a named permission set with a specified state from an XML encoding.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- et
-
Type:
System.Security::SecurityElement^
A security element containing the XML representation of the named permission set.
| Exception | Condition |
|---|---|
| ArgumentException | The et parameter is not a valid representation of a named permission set. |
| ArgumentNullException | The et parameter is null. |
This method recreates the state of a named permission set from an XML element previously created by ToXml.
The following code example shows the use of the FromXml method to recreate a NamedPermissionSet object. This code example is part of a larger example provided for the NamedPermissionSet class.
.NET Framework
Available since 1.1
Available since 1.1
Show: