Service Manager Class
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Configures the location of a custom implementation of the authentication service.
public ref class AuthenticationServiceManager
[System.ComponentModel.TypeConverter(typeof(System.Web.UI.EmptyStringExpandableObjectConverter))] public class AuthenticationServiceManager
[<System.ComponentModel.TypeConverter(typeof(System.Web.UI.EmptyStringExpandableObjectConverter))>] type AuthenticationServiceManager = class
Public Class AuthenticationServiceManager
The authentication Web service is used by AJAX-enabled applications to log on and log off from client script. You can use AuthenticationServiceManager to provide the path of an alternative implementation of the authentication Web service instead of using the built-in Web service that is provided by the AJAX features of ASP.NET.
To use the authentication service in your application, you must enable it in the configuration file. If you use the built-in authentication Web service, you do not have to explicitly declare the authentication service manager on the page.
To create your own authentication service, you must implement a Web service that has two methods:
Logout. In addition, these methods require the same signature of the built-in authentication Web service.
The following example shows the basic class structure that must be implemented in a custom authentication Web service class.
To use a custom authentication Web service, you can add the service declaratively in markup by including an
<AuthenticationService> element inside the
<asp:ScriptManager> element on the page, as shown in the following example.
<asp:ScriptManager ID="SM1" runat="server"> <AuthenticationService Path="MyAuthenticationService.asmx" /> </asp:ScriptManager>
You can also programmatically configure Path to use a custom authentication Web service.
Initializes a new instance of the AuthenticationServiceManager class.
Gets or sets the path of the authentication service.
Determines whether the specified object is equal to the current object.(Inherited from Object)
Serves as the default hash function.(Inherited from Object)
Gets the Type of the current instance.(Inherited from Object)
Creates a shallow copy of the current Object.(Inherited from Object)
Returns a string that represents the current object.(Inherited from Object)