Editare

Partajați prin


ProfileInfo Constructors

Definition

Creates an instance of the ProfileInfo class.

Overloads

ProfileInfo()

Creates an instance of the ProfileInfo object for a class that inherits the ProfileInfo class.

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

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

ProfileInfo()

Creates an instance of the ProfileInfo object for a class that inherits the ProfileInfo class.

protected:
 ProfileInfo();
protected ProfileInfo ();
Protected Sub New ()

Remarks

This System.Web.Profile.ProfileInfo constructor is not intended to be used from your code. Instead, use the ProfileInfo.ProfileInfo.

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

See also

Applies to

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

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

public:
 ProfileInfo(System::String ^ username, bool isAnonymous, DateTime lastActivityDate, DateTime lastUpdatedDate, int size);
public ProfileInfo (string username, bool isAnonymous, DateTime lastActivityDate, DateTime lastUpdatedDate, int size);
new System.Web.Profile.ProfileInfo : string * bool * DateTime * DateTime * int -> System.Web.Profile.ProfileInfo
Public Sub New (username As String, isAnonymous As Boolean, lastActivityDate As DateTime, lastUpdatedDate As DateTime, size As Integer)

Parameters

username
String

The user name for the profile.

isAnonymous
Boolean

true to indicate the profile is for an anonymous user; false to indicate the profile is for an authenticated user.

lastActivityDate
DateTime

The last date and time when the profile was read or updated.

lastUpdatedDate
DateTime

The last date and time when the profile was updated.

size
Int32

The size of the profile information and values stored in the data source.

Examples

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.

Remarks

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.

See also

Applies to