System.Web.Profile 命名空间  
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
包含用于在 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 | 
		 表示将用来处理 ProfileAutoSaving 的 ProfileModule 事件的方法。  | 
| ProfileEventHandler | 
		 表示将用来处理 Personalize 的 ProfileModule 事件的方法。  | 
| ProfileMigrateEventHandler | 
		 表示将处理 ProfileModule 类的 MigrateAnonymous 事件的方法。  | 
注解
ASP.NET 配置文件用于在数据源(如数据库)中存储和检索用户设置。 配置文件信息和属性值使用配置文件提供程序进行管理。 配置文件信息可以使用 类存储在 Microsoft SQL Server 数据库中 SqlProfileProvider ,也可以使用抽象类的实现存储在自定义数据源中 ProfileProvider 。
ASP.NET 配置文件是使用 配置文件 配置部分配置的。
当应用程序启动时启用了配置文件,ASP.NET 会创建一个类型 ProfileCommon为 的新类,该类继承自 类 ProfileBase 。 强类型访问器将添加到ProfileCommon配置文件配置节中定义的每个属性的 类中。 类的ProfileCommon实例设置为当前 HttpContext 对象的 属性的值Profile。 可以创建一个自定义配置文件实现,该实现继承自 ProfileBase 抽象类,并定义 配置文件配置元素 中未指定的用户配置文件的属性。