System.Web.Profile 命名空间

包含用于在 Web 服务器应用程序中处理 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

对 ASP.NET 应用程序的配置文件信息在 SQL Server 数据库中的存储进行管理。

枚举

ProfileAuthenticationOption

描述要搜索的用户配置文件的身份验证类型。

委托

ProfileAutoSaveEventHandler

表示将用来处理 ProfileAutoSavingProfileModule 事件的方法。

ProfileEventHandler

表示将用来处理 PersonalizeProfileModule 事件的方法。

ProfileMigrateEventHandler

表示将处理 ProfileModule 类的 MigrateAnonymous 事件的方法。

注解

ASP.NET 配置文件用于在数据源(如数据库)中存储和检索用户设置。 配置文件信息和属性值使用配置文件提供程序进行管理。 可以使用 类将配置文件信息存储在 Microsoft SQL Server 数据库中SqlProfileProvider,或使用抽象类的实现存储在自定义数据源中ProfileProvider

ASP.NET 配置文件是使用 配置文件 配置部分配置的。

启动启用了配置文件的应用程序时,ASP.NET 会创建一个继承自 ProfileBase 类的 类型的ProfileCommon新类。 强类型访问器将添加到ProfileCommon配置文件配置节中定义的每个属性的 类中。 类的ProfileCommon实例设置为当前 HttpContext 对象的 属性的值Profile。 可以创建自定义配置文件实现,该实现继承自 ProfileBase 抽象类,并定义 配置文件配置元素 中未指定的用户配置文件的属性。