共用方式為


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 建立和傳回。

另請參閱

適用於