DefaultProfile 類別

定義

設定檔屬性未定義時,表示使用者設定檔的執行個體。

public ref class DefaultProfile : System::Web::Profile::ProfileBase
public class DefaultProfile : System.Web.Profile.ProfileBase
type DefaultProfile = class
    inherit ProfileBase
Public Class DefaultProfile
Inherits ProfileBase
繼承

備註

DefaultProfile 啟用設定檔功能但未定義任何屬性時,ASP.NET 會使用 類別來傳回使用者設定檔的預設實例。

建構函式

DefaultProfile()

建立 DefaultProfile 類別的新執行個體。

屬性

Context

取得關聯的設定內容。

(繼承來源 SettingsBase)
IsAnonymous

取得布林值,指出使用者設定檔是否供匿名使用者使用。

(繼承來源 ProfileBase)
IsDirty

取得布林值,指出設定檔屬性是否已修改。

(繼承來源 ProfileBase)
IsSynchronized

取得值,指出對物件的存取是否為同步的 (安全執行緒)。

(繼承來源 SettingsBase)
Item[String]

取得或設定由屬性名稱索引的設定檔屬性值。

(繼承來源 ProfileBase)
LastActivityDate

取得設定檔最近讀取或修改的日期和時間。

(繼承來源 ProfileBase)
LastUpdatedDate

取得設定檔最近修改的日期和時間。

(繼承來源 ProfileBase)
Properties

取得設定屬性的集合。

(繼承來源 SettingsBase)
PropertyValues

取得設定屬性值的集合。

(繼承來源 SettingsBase)
Providers

取得設定提供者的集合。

(繼承來源 SettingsBase)
UserName

取得設定檔的使用者名稱。

(繼承來源 ProfileBase)

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetProfileGroup(String)

取得由群組名稱識別的屬性群組。

(繼承來源 ProfileBase)
GetPropertyValue(String)

取得設定檔屬性的值。

(繼承來源 ProfileBase)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
Initialize(SettingsContext, SettingsPropertyCollection, SettingsProviderCollection)

初始化 SettingsBase 物件所用的內部屬性。

(繼承來源 SettingsBase)
Initialize(String, Boolean)

初始化目前使用者的設定檔屬性值和資訊。

(繼承來源 ProfileBase)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
Save()

使用已變更的設定檔屬性值,更新設定檔資料來源。

(繼承來源 ProfileBase)
SetPropertyValue(String, Object)

設定設定檔屬性的值。

(繼承來源 ProfileBase)
ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

適用於

另請參閱