This documentation is archived and is not being maintained.

Membership Element

Windows SharePoint Services 3

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Defines a filter based on the type of membership for the user.

  Type = "Text">
</ Membership>




Required Text. Specifies the type of membership for the user. Possible values include the following:

  • SPWeb.AllUsers

  • SPGroup

  • SPWeb.Groups

  • CurrentUserGroups

  • SPWeb.Users

Minimum: 0

Maximum: Unbounded

The following example defines a filter for cases where the user is either assigned a task based on membership in a group or assigned a task directly.

  <Membership Type=\"CurrentUserGroups\">
    <FieldRef Name=\"AssignedTo\"/>
    <FieldRef Name=\"AssignedTo\"></FieldRef>
    <Value Type=\"Integer\">