int CountUsersByName( string searchPattern, NameSearchField searchField, bool includeAnonymous )
Parameters
- searchPattern
- The search pattern to check against the user table.
- searchField
- The name field to check against the search pattern.
- includeAnonymous
- If true then the count will include the anonymous users as well
Return Value
The number of users that match the search.