ProfileInfo 构造函数

定义

创建 ProfileInfo 类的实例。

重载

ProfileInfo()

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

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

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

ProfileInfo()

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

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

注解

System.Web.Profile.ProfileInfo不应在代码中使用此构造函数。 改为使用 ProfileInfo.ProfileInfo

ProfileInfo 对象 ProfileInfoCollection 由的 GetAllProfilesGetAllInactiveProfilesFindProfilesByUserNameFindInactiveProfilesByUserName 方法 ProfileProvider 构造和返回为的一部分。

另请参阅

适用于

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

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

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)

参数

username
String

该配置文件的用户名。

isAnonymous
Boolean

true 指示该配置文件用于匿名用户;false 指示该配置文件用于经过身份验证的用户。

lastActivityDate
DateTime

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

lastUpdatedDate
DateTime

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

size
Int32

存储在数据源中的配置文件信息和值的大小。

示例

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

注解

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

ProfileInfo 对象的构造和返回方式为的 ProfileInfoCollection GetAllProfilesGetAllInactiveProfilesFindProfilesByUserNameFindInactiveProfilesByUserName 方法 ProfileProvider

另请参阅

适用于