This documentation is archived and is not being maintained.

System.Web.ClientServices.Providers Namespace

The System.Web.ClientServices.Providers namespace contains client service providers and other classes that support access in Windows-based applications to the ASP.NET AJAX authentication, roles, and profile services.

The classes in the System.Web.ClientServices.Providers namespace include client application service providers that enable Windows-based applications to use the ASP.NET 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.

Public classClientFormsAuthenticationCredentialsRepresents user login information for forms authentication by using client application services.
Public classClientFormsAuthenticationMembershipProviderEnables forms authentication with client application services.
Public classClientRoleProviderGets role information for Windows-based applications from an ASP.NET AJAX roles service.
Public classClientSettingsProviderEnables Windows-based applications to retrieve user settings from a Web settings service.
Public classClientWindowsAuthenticationMembershipProviderEnables Windows authentication with client application services.
Public classSettingsSavedEventArgsProvides data for the ClientSettingsProvider.SettingsSaved event.
Public classUserValidatedEventArgsProvides data for the ClientFormsAuthenticationMembershipProvider.UserValidated event.

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