XamlLoadPermission.FromXml(SecurityElement) Method

Definition

Reconstructs a security object with a specified state from an XML encoding.

public override void FromXml (System.Security.SecurityElement elem);

Parameters

elem
SecurityElement

The XML encoding to use to reconstruct the security object.

Exceptions

elem is null.

elem does not contain the XML encoding for a XamlLoadPermission.

-or-

The version attribute within elem is not supported.

Applies to

Produit Versions
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided)
.NET Framework 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
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9