Skip to main content

SearchMembersRequest Constructors

An object defining constructors for the SearchMembersRequest class.

SearchMembersRequest()

Initializes a new instance of the SearchMembersRequest class.


SearchMembersRequest(text, isMemberOf, statusCondition)

Initializes a new instance of the SearchMembersRequest class with the specified search criteria.

Parameters:

text (required): string
The search text to filter members.

isMemberOf (required): bool
A value indicating whether to search for members that belong to a specific group or entity.

statusCondition (required): EntityStatusCondition
The status condition used to filter members.

Sets the following properties:

  • Text = text
  • IsMemberOf = isMemberOf
  • StatusCondition = statusCondition

This constructor is marked with the [JsonConstructor] attribute, indicating it is used for JSON deserialization.


SearchMembersRequest(text, isMemberOf)

Initializes a new instance of the SearchMembersRequest class with the specified search criteria and default status condition.

Parameters:

text (required): string
The search text to filter members.

isMemberOf (required): bool
A value indicating whether to search for members that belong to a specific group or entity.

This constructor calls the main constructor with EntityStatusCondition.All as the default status condition:

  • text: Used as provided
  • isMemberOf: Used as provided
  • statusCondition: Set to EntityStatusCondition.All