ConfigurationPermission.FromXml(SecurityElement) ConfigurationPermission.FromXml(SecurityElement) ConfigurationPermission.FromXml(SecurityElement) Method

Definition

Reads the value of the permission state from XML.

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

Parameters

securityElement
SecurityElement SecurityElement SecurityElement

The configuration element from which the permission state is read.

Exceptions

The unrestricted attribute for the given securityElement is neither true nor false.

-or-

The Tag for the given securityElement does not equal "IPermission".

-or-

The class attribute of the given securityElement is null or is not the type name for ConfigurationPermission.

-or-

The version attribute for the given securityElement does not equal 1.

Applies to