Share via


SPChangeQuery.RoleDefinitionDelete property

Gets or sets a Boolean value that specifies whether changes that delete role definitions are included in the query.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Property RoleDefinitionDelete As Boolean
    Get
    Set
'Usage
Dim instance As SPChangeQuery
Dim value As Boolean

value = instance.RoleDefinitionDelete

instance.RoleDefinitionDelete = value
public bool RoleDefinitionDelete { get; set; }

Property value

Type: System.Boolean
true to include changes that delete role definitions; otherwise, false. The default is false.

Remarks

The following code constructs a query for changes that add, delete, or update role assignments and role definitions in Web sites and lists.

Dim query As New SPChangeQuery(False, False)

' object types
query.List = True
query.Web = True

' change types
query.RoleAssignmentAdd = True
query.RoleAssignmentDelete = True
query.RoleDefinitionAdd = True
query.RoleDefinitionDelete = True
query.RoleDefinitionUpdate = True
SPChangeQuery query = new SPChangeQuery(false, false);

// object types
query.List = true;
query.Web = true;

// change types
query.RoleAssignmentAdd = true;
query.RoleAssignmentDelete = true;
query.RoleDefinitionAdd = true;
query.RoleDefinitionDelete = true;
query.RoleDefinitionUpdate = true;

See also

Reference

SPChangeQuery class

SPChangeQuery members

Microsoft.SharePoint namespace

SPChangeList

SPChangeWeb

SPRoleDefinition