ProfileInfo ProfileInfo ProfileInfo ProfileInfo Class

定义

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

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

示例

有关为数据存储区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.

ProfileInfoProfileInfoCollection对象由的ProfileProviderGetAllInactiveProfiles、和方法FindInactiveProfilesByUserName构造和返回为的一部分。 FindProfilesByUserName GetAllProfilesProfileInfo objects are constructed and returned as part of a ProfileInfoCollection by the GetAllProfiles, GetAllInactiveProfiles, FindProfilesByUserName, and FindInactiveProfilesByUserName methods of a ProfileProvider.

构造函数

ProfileInfo() ProfileInfo() ProfileInfo() 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(String, Boolean, DateTime, DateTime, Int32) ProfileInfo(String, Boolean, DateTime, DateTime, Int32) ProfileInfo(String, Boolean, DateTime, DateTime, Int32)

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

属性

IsAnonymous IsAnonymous IsAnonymous IsAnonymous

获取该配置文件的用户名是否为匿名。Gets whether the user name for the profile is anonymous.

LastActivityDate LastActivityDate LastActivityDate LastActivityDate

获取读取或更新该配置文件的最后日期和时间。Gets the last date and time when the profile was read or updated.

LastUpdatedDate LastUpdatedDate LastUpdatedDate LastUpdatedDate

获取更新该配置文件的最后日期和时间。Gets the last date and time when the profile was updated.

Size Size Size Size

获取存储在数据源中的配置文件属性名称和值的大小。Gets the size of the profile property names and values stored in the data source.

UserName UserName UserName UserName

获取该配置文件的用户名。Gets the user name for the profile.

方法

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

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

(Inherited from Object)
GetType() GetType() GetType() GetType()

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

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

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

(Inherited from Object)
ToString() ToString() ToString() ToString()

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

(Inherited from Object)

适用于

另请参阅