ProfileInfo 類別

定義

提供使用者設定檔的相關資訊。

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

範例

如需在資料存放區中為使用者設定檔建立 ProfileInfoCollectionProfileInfo 物件的實作範例 ProfileProvider ,請參閱實作設定檔提供者

備註

類別 ProfileInfo 可用來表示來自資料存放區之使用者設定檔的資訊,包括擷取或更新配置檔案屬性的上次日期和時間、與設定檔相關聯的使用者名稱,以及設定檔適用于匿名或已驗證的使用者。

ProfileInfo物件是由 的 、 FindProfilesByUserNameGetAllInactiveProfilesFindInactiveProfilesByUserName 方法建構並傳回為 的一 ProfileProvider 部分 ProfileInfoCollectionGetAllProfiles

建構函式

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)

適用於

另請參閱