ProfileInfo 类

定义

提供关于用户配置文件的信息。

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

示例

有关为数据存储区中的用户配置文件创建 ProfileInfoCollectionProfileInfo 对象的实现示例ProfileProvider,请参阅实现配置文件提供程序

注解

ProfileInfo 用于表示有关数据存储区中用户配置文件的信息,包括上次检索或更新配置文件属性的日期和时间、与配置文件关联的用户名,以及配置文件是针对匿名用户还是经过身份验证的用户。

ProfileInfo对象由 GetAllProfiles的 、、 GetAllInactiveProfilesFindProfilesByUserName和 方法ProfileProvider构造和FindInactiveProfilesByUserName返回。ProfileInfoCollection

构造函数

ProfileInfo()

为继承 ProfileInfo 类的类创建 ProfileInfo 对象。

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

使用指定的属性值创建 ProfileInfo 类的实例。

属性

IsAnonymous

获取该配置文件的用户名是否为匿名。

LastActivityDate

获取读取或更新该配置文件的最后日期和时间。

LastUpdatedDate

获取更新该配置文件的最后日期和时间。

Size

获取存储在数据源中的配置文件属性名称和值的大小。

UserName

获取该配置文件的用户名。

方法

Equals(Object)

确定指定对象是否等于当前对象。

(继承自 Object)
GetHashCode()

作为默认哈希函数。

(继承自 Object)
GetType()

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。

(继承自 Object)
ToString()

返回表示当前对象的字符串。

(继承自 Object)

适用于

另请参阅