System.Web.Profile 命名空間

包含類別,其用來在網頁伺服器應用程式中使用 ASP.NET 使用者設定檔。

類別

CustomProviderDataAttribute

提供自訂資料的字串給提供者做為設定檔屬性。

DefaultProfile

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

ProfileAutoSaveEventArgs

提供 ProfileAutoSaving 類別之 ProfileModule 事件的資料。

ProfileBase

提供設定檔屬性值和資訊的不具型別存取。

ProfileEventArgs

提供 Personalize 類別之 ProfileModule 事件的資料。

ProfileGroupBase

提供群組 ASP.NET 設定檔屬性值的不具型別存取。

ProfileInfo

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

ProfileInfoCollection

ProfileInfo 物件的集合。

ProfileManager

管理使用者設定檔資料和設定。

ProfileMigrateEventArgs

提供 MigrateAnonymous 類別之 ProfileModule 事件的資料。

ProfileModule

管理使用者設定檔的建立和設定檔事件。 此類別無法獲得繼承。

ProfileProvider

定義合約,由 ASP.NET 實作,使用自訂設定檔提供者來提供設定檔服務。

ProfileProviderAttribute

識別使用者設定檔屬性的設定檔提供者。

ProfileProviderCollection

繼承 ProfileProvider 抽象類別的物件集合。

SettingsAllowAnonymousAttribute

識別匿名使用者是否能設定或存取設定檔屬性。

SqlProfileProvider

在 SQL Server 資料庫中,管理 ASP.NET 應用程式設定檔資訊的存放。

列舉

ProfileAuthenticationOption

說明要搜尋之使用者設定檔的驗證類型。

委派

ProfileAutoSaveEventHandler

代表將處理 ProfileAutoSavingProfileModule 事件的方法。

ProfileEventHandler

代表將處理 PersonalizeProfileModule 事件的方法。

ProfileMigrateEventHandler

代表將處理 ProfileModule 類別的 MigrateAnonymous 事件之方法。

備註

ASP.NET 設定檔可用來儲存和擷取資料來源中的使用者設定,例如資料庫。 設定檔資訊和屬性值是使用設定檔提供者來管理。 設定檔資訊可以使用 類別儲存在 Microsoft SQL Server 資料庫中 SqlProfileProvider ,或使用抽象類別的實作,儲存在自訂資料來源中 ProfileProvider

ASP.NET 設定檔是使用 設定檔 組態區段來設定。

當應用程式啟動且已啟用設定檔時,ASP.NET 會建立 型 ProfileCommon 別 的新類別,此類別繼承自 ProfileBase 類別。 強型別存取子會針對設定檔組態區段中定義的每個屬性新增至 ProfileCommon 類別。 類別 ProfileCommon 的實例會設定為 Profile 目前 HttpContext 物件的 屬性值。 您可以建立繼承自抽象類別的 ProfileBase 自訂設定檔實作,並定義設定檔 組態專案中 未指定之使用者設定檔的屬性。