GacIdentityPermission.FromXml Method (SecurityElement)

 

Creates a permission from an XML encoding.

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

public override void FromXml(
	SecurityElement securityElement
)

Parameters

securityElement
Type: System.Security.SecurityElement

A SecurityElement that contains the XML encoding to use to create the permission.

Exception Condition
ArgumentNullException

securityElementis null.

ArgumentException

securityElement is not a valid permission element.

-or-

The version number of securityElement is not valid.

The FromXml method creates a GacIdentityPermission from an XML encoding defined by a SecurityElement object. Use the ToXml method to XML-encode the GacIdentityPermission, including state information.

.NET Framework
Available since 2.0
Return to top
Show: