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

NamedPermissionSet.FromXml Method (SecurityElement)


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

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

public override void FromXml(
	SecurityElement et


Type: System.Security.SecurityElement

A security element containing the XML representation of the named permission set.

Exception Condition

The et parameter is not a valid representation of a named permission set.


The et parameter is null.

This method recreates the state of a named permission set from an XML element previously created by ToXml.

Legacy Code Example

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.

Code snippet is not found. Confirm that the code snippet name 'System.Security.NamedPermissionSet' is correct.

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