XamlLoadPermission.Intersect(IPermission) Method

Definition

Creates and returns a XamlLoadPermission that is the intersection of the current XamlLoadPermission and the specified permission.

public override System.Security.IPermission Intersect (System.Security.IPermission target);

Parameters

target
IPermission

A XamlLoadPermission to intersect with the current XamlLoadPermission. Can be null.

Returns

A new permission that represents the intersection of the current XamlLoadPermission and the specified XamlLoadPermission. This new permission is null if the intersection is empty.

Exceptions

target is not null or is not a XamlLoadPermission.

Remarks

For union, intersect, and subset logic, IsUnrestricted is checked first, and might return a result based solely on that check. Next, AllowedAccess is checked.

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