ProfileInfo 类

定义

提供关于用户配置文件的信息。Provides information about a user profile.

public ref class ProfileInfo
[System.Serializable]
public class ProfileInfo
[<System.Serializable>]
type ProfileInfo = class
Public Class ProfileInfo
继承
ProfileInfo
属性

示例

有关为 ProfileProvider ProfileInfoCollection ProfileInfo 数据存储区中的用户配置文件创建对象的的示例,请参阅 实现配置文件提供程序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.

注解

ProfileInfo类用于表示有关数据存储区中的用户配置文件的信息,包括检索或更新配置文件属性的最后日期和时间、与该配置文件关联的用户名以及该配置文件是针对匿名用户还是经过身份验证的用户。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 对象 ProfileInfoCollection 由的 GetAllProfilesGetAllInactiveProfilesFindProfilesByUserNameFindInactiveProfilesByUserName 方法 ProfileProvider 构造和返回为的一部分。ProfileInfo objects are constructed and returned as part of a ProfileInfoCollection by the GetAllProfiles, GetAllInactiveProfiles, FindProfilesByUserName, and FindInactiveProfilesByUserName methods of a ProfileProvider.

构造函数

ProfileInfo()

为继承 ProfileInfo 类的类创建 ProfileInfo 对象。Creates an instance of the ProfileInfo object for a class that inherits the ProfileInfo class.

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

使用指定的属性值创建 ProfileInfo 类的实例。Creates an instance of the ProfileInfo class with the specified property values.

属性

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.

方法

Equals(Object)

确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于