System.Web.ClientServices.Providers Namespace

Contains client service providers and other classes that support access in Windows-based applications to the Microsoft Ajax authentication, roles, and profile services.



Represents user login information for forms authentication by using client application services.


Enables forms authentication with client application services.


Gets role information for Windows-based applications from an Microsoft Ajax roles service.


Enables Windows-based applications to retrieve user settings from a Web settings service.


Enables Windows authentication with client application services.


Provides data for the SettingsSaved event.


Provides data for the UserValidated event.



Defines a method that the ClientFormsAuthenticationMembershipProvider class calls to retrieve user credentials.


The classes in the System.Web.ClientServices.Providers namespace include client application service providers that enable Windows-based applications to use the Microsoft Ajax authentication, roles, and profile services. You can enable these services and specify client service providers in your application configuration file, and then access the services through existing .NET Framework 2.0 membership, identity, and application settings infrastructures. The client service providers also support occasional connectivity by storing and retrieving user information in a local data cache when the application is offline. For more information, see Client Application Services.

To access the login service, you can use either Windows or Forms authentication by specifying the ClientWindowsAuthenticationMembershipProvider or ClientFormsAuthenticationMembershipProvider in your application configuration. Windows authentication uses the identity supplied when a user logs in to the operating system. Forms authentication requires that you to retrieve login information from the user and pass it to the service. You can do this by specifying an IClientFormsAuthenticationCredentialsProvider implementation with your ClientFormsAuthenticationMembershipProvider configuration. The IClientFormsAuthenticationCredentialsProvider.GetCredentials method returns a ClientFormsAuthenticationCredentials object that contains user login information. You can populate this object, for example, by displaying a login dialog box in the GetCredentials method.

To access the roles and profile services, specify the ClientRoleProvider and ClientSettingsProvider in your application configuration.