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