NamedPermissionSet.FromXml Method (SecurityElement)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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
)

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
Return to top
Show: