VGPrincipalPermissionIntersect Method
|
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: 2019.1.831.19 (2019.1.0831.19)
Syntax public IPermission Intersect(
IPermission target
)
Public Function Intersect (
target As IPermission
) As IPermission
Parameters
- target
- Type: System.SecurityIPermission
A permission to intersect with the current permission. It must be of the same type as the current permission.
Return Value
Type:
IPermissionA 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
IPermissionIntersect(IPermission)Exceptions Exception | Condition |
---|
ArgumentException | The target parameter is not null and is not an instance of the same class as the current permission. |
See Also