Visual Guard Class Library Documentation

VGPrincipalPermission.Intersect Method 

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

public IPermission Intersect(
   IPermission target
);

Parameters

target
A permission to intersect with the current permission. It must be of the same type as the current permission.

Return Value

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

Implements

IPermission.

Exceptions

Exception Type Condition
ArgumentException The target parameter is not null and is not an instance of the same class as the current permission.

See Also

VGPrincipalPermission Class | Novalys.VisualGuard.Security Namespace