Uređivanje

Dijeli putem


ScriptManager.AuthenticationService Property

Definition

Gets the AuthenticationServiceManager object that is associated with the current ScriptManager instance.

public:
 property System::Web::UI::AuthenticationServiceManager ^ AuthenticationService { System::Web::UI::AuthenticationServiceManager ^ get(); };
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)]
public System.Web.UI.AuthenticationServiceManager AuthenticationService { get; }
[<System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)>]
member this.AuthenticationService : System.Web.UI.AuthenticationServiceManager
Public ReadOnly Property AuthenticationService As AuthenticationServiceManager

Property Value

The AuthenticationServiceManager object for the current ScriptManager instance.

Attributes

Remarks

The AuthenticationServiceManager object that is returned by this property represents the authentication service that is registered with the page. The authentication service can be defined in the ScriptManager control or in an associated ScriptManagerProxy control.

You can use the ASP.NET authentication service or use a custom authentication service. You can add the custom service 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 the AuthenticationServiceManager object. Services are registered with the ScriptManager control during the page's PreRender life-cycle stage.

Applies to