Szerkesztés

Megosztás a következőn keresztül:


GacIdentityPermission.FromXml(SecurityElement) Method

Definition

Creates a permission from an XML encoding.

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

Parameters

securityElement
SecurityElement

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

Exceptions

securityElement is null.

securityElement is not a valid permission element.

-or-

The version number of securityElement is not valid.

Remarks

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.

Applies to