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:
virtual void FromXml(
	SecurityElement^ et
) override

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: