System.Web.ApplicationServices 命名空间   
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
提供一些类,通过这些类可以访问 ASP.NET Forms 身份验证、角色和配置文件应用程序服务,如 Windows Communication Foundation (WCF) 服务。
类
| ApplicationServicesHostFactory | 提供一个工厂类,它在托管承载环境中创建身份验证服务、角色服务和配置文件服务的实例。 | 
| AuthenticatingEventArgs | 为 Authenticating 事件提供数据。 | 
| AuthenticationService | 启用作为 Web 服务对 ASP.NET Forms 身份验证的访问。 | 
| CreatingCookieEventArgs | 为 CreatingCookie 事件提供数据。 | 
| KnownTypesProvider | 创建 Type 对象的一个数组,这些对象包含各个配置文件属性的类型。 | 
| ProfilePropertyMetadata | 提供描述配置文件属性的值的集合。 | 
| ProfileService | 允许通过 Web 服务访问 ASP.NET 用户配置文件。 | 
| RoleService | 允许通过 WCF Web 服务访问 ASP.NET 角色提供程序。 | 
| SelectingProviderEventArgs | 为 SelectingProvider 事件提供数据。 | 
| ValidatingPropertiesEventArgs | 为 ValidatingProperties 事件提供数据。 | 
注解
AuthenticationService、 RoleService和 ProfileService 类包含的方法使你能够登录用户、检查当前用户所属的角色,以及通过 WCF 服务检索用户的配置文件属性。 命名空间还包括以下类:
- CreatingCookieEventArgs,用于从 AuthenticationService 类自定义身份验证 Cookie。 
- AuthenticatingEventArgs,用于在运行时选择成员资格提供程序。 
- SelectingProviderEventArgs,用于在运行时选择角色提供程序。 
- ValidatingPropertiesEventArgs,用于为用户配置文件属性创建自定义验证。