This documentation is archived and is not being maintained.

ProfileInfo Constructor (String, Boolean, DateTime, DateTime, Int32)

Creates an instance of the ProfileInfo class with the specified property values.

Namespace:  System.Web.Profile
Assembly:  System.Web (in System.Web.dll)

public:
ProfileInfo(
	String^ username, 
	bool isAnonymous, 
	DateTime lastActivityDate, 
	DateTime lastUpdatedDate, 
	int size
)

Parameters

username
Type: System::String
The user name for the profile.
isAnonymous
Type: System::Boolean
true to indicate the profile is for an anonymous user; false to indicate the profile is for an authenticated user.
lastActivityDate
Type: System::DateTime
The last date and time when the profile was read or updated.
lastUpdatedDate
Type: System::DateTime
The last date and time when the profile was updated.
size
Type: System::Int32
The size of the profile information and values stored in the data source.

The ProfileInfo object is used to represent information about a user profile from the data store, including the last date and time when profile properties were retrieved or updated, the user name associated with the profile, and whether the profile is for an anonymous or authenticated user.

ProfileInfo objects are constructed and returned as a ProfileInfoCollection by the GetAllProfiles, GetAllInactiveProfiles, FindProfilesByUserName, and FindInactiveProfilesByUserName methods of a ProfileProvider.

For an example of a ProfileProvider implementation that creates a ProfileInfoCollection of ProfileInfo objects for user profiles in a data store, see Implementing a Profile Provider.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: