ProfileInfo 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
提供使用者設定檔的相關資訊。
public ref class ProfileInfo
[System.Serializable]
public class ProfileInfo
[<System.Serializable>]
type ProfileInfo = class
Public Class ProfileInfo
- 繼承
-
ProfileInfo
- 屬性
範例
如需在資料存放區中為使用者設定檔建立 ProfileInfoCollectionProfileInfo 物件的實作範例 ProfileProvider ,請參閱實作設定檔提供者。
備註
類別 ProfileInfo 可用來表示來自資料存放區之使用者設定檔的資訊,包括擷取或更新配置檔案屬性的上次日期和時間、與設定檔相關聯的使用者名稱,以及設定檔適用于匿名或已驗證的使用者。
ProfileInfo物件是由 的 、 FindProfilesByUserNameGetAllInactiveProfiles 和 FindInactiveProfilesByUserName 方法建構並傳回為 的一 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) |
適用於
另請參閱
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應