แก้ไข

แชร์ผ่าน


System.Web.ClientServices Namespace

Provides classes that support access in Windows-based applications to the Microsoft Ajax authentication, roles, and profiles services.

Classes

ClientFormsIdentity

Represents a user identity authenticated for client application services by using forms authentication.

ClientRolePrincipal

Represents security information for client application services, which includes role information.

ConnectivityStatus

Represents the status of an application's network connection.

Remarks

The classes in the System.Web.ClientServices namespace support the client application service providers in the System.Web.ClientServices.Providers namespace. These service providers enable Windows-based applications to use the Microsoft Ajax authentication, roles, and profiles 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.

The ClientFormsIdentity and ClientRolePrincipal classes provide properties and methods related to a user's identity, role, and authentication state.

The ConnectivityStatus class enables you to store the status of the user's network connection in the local data cache. The connectivity status indicates whether the client service providers will use the offline cache or attempt to access the application services.

Note

The ConnectivityStatus class contains no logic to determine the actual status of the network connection. You are responsible for determining the connectivity status of your application according to your own criteria and setting the IsOffline property accordingly. For example, Windows-based applications often provide an option in the user interface so that users can work in offline mode or attempt to go online.