Edit

Share via


ProfileInfo Class

Definition

Provides information about a user profile.

public ref class ProfileInfo
[System.Serializable]
public class ProfileInfo
[<System.Serializable>]
type ProfileInfo = class
Public Class ProfileInfo
Inheritance
ProfileInfo
Attributes

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 class 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 part of a ProfileInfoCollection by the GetAllProfiles, GetAllInactiveProfiles, FindProfilesByUserName, and FindInactiveProfilesByUserName methods of a ProfileProvider.

Constructors

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.

Properties

IsAnonymous

Gets whether the user name for the profile is anonymous.

LastActivityDate

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

LastUpdatedDate

Gets the last date and time when the profile was updated.

Size

Gets the size of the profile property names and values stored in the data source.

UserName

Gets the user name for the profile.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also