NamedPermissionSet.FromXml(SecurityElement) Method

Definition

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

public:
 override void FromXml(System::Security::SecurityElement ^ et);
public override void FromXml (System.Security.SecurityElement et);
override this.FromXml : System.Security.SecurityElement -> unit
Public Overrides Sub FromXml (et As SecurityElement)

Parameters

et
SecurityElement

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

Exceptions

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

The et parameter is null.

Examples

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.

Remarks

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

Applies to