XamlLoadPermission.Intersect Method (IPermission)

.NET Framework (current version)
 

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

Namespace:   System.Xaml.Permissions
Assembly:  System.Xaml (in System.Xaml.dll)

public override IPermission Intersect(
	IPermission target
)

Parameters

target
Type: System.Security.IPermission

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

Return Value

Type: System.Security.IPermission

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.

Exception Condition
ArgumentException

target is not null or is not a XamlLoadPermission.

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

.NET Framework
Available since 4.0
Return to top
Show: