ClaimsPrincipalPermission.FromXml Method (SecurityElement)

.NET Framework (current version)
 

Reconstructs the current permission and its state from the specified XML encoding.

Namespace:   System.IdentityModel.Services
Assembly:  System.IdentityModel.Services (in System.IdentityModel.Services.dll)

public void FromXml(
	SecurityElement element
)

Parameters

element
Type: System.Security.SecurityElement

The XML encoding to use to reconstruct the permission.

Exception Condition
ArgumentNullException

element is null.

InvalidOperationException

The encoding contains unrecognized elements or attributes or improperly formed XML.

Reconstructs a permission from the XML encoding created by a call to the ToXml method.

.NET Framework
Available since 4.5
Return to top
Show: