System.Web.Profile.ProfileManager.GetNumberOfProfiles Method

Gets the number of profiles in the data source.

Syntax

public static int GetNumberOfProfiles (ProfileAuthenticationOption authenticationOption)

Parameters

authenticationOption
One of the System.Web.Profile.ProfileAuthenticationOption enumeration values, specifying whether anonymous, authenticated, or both types of profiles are returned.

Returns

The number of profiles in the data source.

Remarks

The ProfileManager.GetNumberOfProfiles(ProfileAuthenticationOption) method is used to retrieve a count of all of the user profiles from the data source for the application specified by the applicationName attribute in the configuration file. Use the authenticationOption parameter to specify whether you want only anonymous profiles, only authenticated profiles, or all profiles to be searched.

Requirements

Namespace: System.Web.Profile
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0