Partilhar via


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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
<ClientCallableAttribute> _
Public Property GroupMembershipDelete As Boolean
    Get
    Set
'Usage
Dim instance As SPChangeQuery
Dim value As Boolean

value = instance.GroupMembershipDelete

instance.GroupMembershipDelete = value
[ClientCallableAttribute]
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;

See Also

Reference

SPChangeQuery Class

SPChangeQuery Members

Microsoft.SharePoint Namespace