SPChangeQuery.GroupMembershipDelete property
Gets or sets a Boolean value that specifies whether changes that delete users from groups are included in the change query.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Property GroupMembershipDelete As Boolean
Get
Set
'Usage
Dim instance As SPChangeQuery
Dim value As Boolean
value = instance.GroupMembershipDelete
instance.GroupMembershipDelete = value
public bool GroupMembershipDelete { get; set; }
Property value
Type: System.Boolean
true to include deletions from groups; otherwise, false. The default is false.
Remarks
The following code constructs a query for changes that modify group membership.
Dim query As New SPChangeQuery(False, False)
' object type
query.Group = True
' change types
query.GroupMembershipAdd = True
query.GroupMembershipDelete = True
SPChangeQuery query = new SPChangeQuery(false, false);
// object type
query.Group = true;
// change types
query.GroupMembershipAdd = true;
query.GroupMembershipDelete = true;