GetAllProfiles
This method retrieves all profile information from the data source.
Declaration
// C# public override ProfileInfoCollection GetAllProfiles(ProfileAuthenticationOption profileAuthenticationOption, int pageIndex, int pageSize, out int totalRecords);
Parameters
-
profileAuthenticationOptionAnonymous,Authenticated, orAllprofiles to be searched. -
pageIndexThe 0-based index of the results page.
-
pageSizeThe size of the page of the results page
-
totalRecordsThe total number of profiles.
Return Value
A ProfileInfoCollection object that contains all user profiles from the data source.
Exceptions
ArgumentException - One of the following conditions exists:
-
The
pageSizeparameter is less than 1. -
The
pageIndexparameter is less than 0 orpageIndexmultiplied bypageSizeis larger thanInt32.MaxValue.
Remarks
This method retrieves all profiles from the data source for the application specified by the applicationName attribute in the configuration file. The profileAuthenticationOption parameter specifies whether to search only anonymous profiles, only authenticated profiles, or all profiles.
The returned results are constrained by the pageIndex and pageSize parameters. The pageSize parameter identifies the number of ProfileInfo objects to return in the ProfileInfoCollection object. The pageIndex parameter identifies which page of results to return. The totalRecords parameter is an out parameter for the total number of user profiles retrieved.