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

Namespace:  Novalys.VisualGuard.Security
Assembly:  Novalys.VisualGuard.Security (in Novalys.VisualGuard.Security.dll) Version: 3.2.912.1 (3.2.912.01)

Syntax

C#
public IPermission Intersect(
	IPermission target
)
Visual Basic (Declaration)
Public Function Intersect ( _
	target As IPermission _
) As IPermission

Parameters

target
Type: System.Security..::.IPermission
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..::.Intersect(IPermission)

Exceptions

ExceptionCondition
System..::.ArgumentExceptionThe target parameter is not null and is not an instance of the same class as the current permission.

See Also