SPObjectRights.Except method
When implemented in a derived class, creates a new set of rights that contains all of the current object rights that do not appear in the specified rights.
Namespace: Microsoft.SharePoint.Administration.AccessControl
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public MustOverride Function Except ( _
objectRights As SPObjectRights _
) As SPObjectRights
'Usage
Dim instance As SPObjectRights
Dim objectRights As SPObjectRights
Dim returnValue As SPObjectRights
returnValue = instance.Except(objectRights)
public abstract SPObjectRights Except(
SPObjectRights objectRights
)
Parameters
objectRights
Type: Microsoft.SharePoint.Administration.AccessControl.SPObjectRightsThe rights to exclude from the current object rights.
Return value
Type: Microsoft.SharePoint.Administration.AccessControl.SPObjectRights
A new set of rights that represents the currentSPObjectRightsobject rights that do not appear in the specified rights..