Прочетете на английски Редактиране

Споделяне чрез


ConfigurationPermission.FromXml(SecurityElement) Method

Definition

Reads the value of the permission state from XML.

C#
public override void FromXml(System.Security.SecurityElement securityElement);

Parameters

securityElement
SecurityElement

The configuration element from which the permission state is read.

Exceptions

securityElement is null.

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

Продукт Версии
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10