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: 2016.0.105.16 (2016.0.105.16)

Syntax

C#
public IPermission Intersect(
	IPermission target
)
Visual Basic
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

Type: IPermission
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