Share via


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

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..

See also

Reference

SPObjectRights class

SPObjectRights members

Microsoft.SharePoint.Administration.AccessControl namespace