ScriptManager.AuthenticationService Właściwość

Definicja

AuthenticationServiceManager Pobiera obiekt skojarzony z bieżącym ScriptManager wystąpieniem.

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

Wartość właściwości

Obiekt AuthenticationServiceManager dla bieżącego ScriptManager wystąpienia.

Atrybuty

Uwagi

Obiekt AuthenticationServiceManager zwracany przez tę właściwość reprezentuje usługę uwierzytelniania zarejestrowaną na stronie. Usługę uwierzytelniania można zdefiniować w kontrolce ScriptManager lub w skojarzonej ScriptManagerProxy kontrolce.

Możesz użyć usługi uwierzytelniania ASP.NET lub użyć niestandardowej usługi uwierzytelniania. Usługę niestandardową można dodać w znacznikach, dołączając AuthenticationService element wewnątrz asp:ScriptManager elementu na stronie, jak pokazano w poniższym przykładzie.

<asp:ScriptManager ID="SM1" runat="server">  
  <AuthenticationService Path="MyAuthenticationService.asmx" />  
</asp:ScriptManager>  

Można również programowo skonfigurować AuthenticationServiceManager obiekt. Usługi są rejestrowane za pomocą kontrolki ScriptManager podczas etapu PreRender cyklu życia strony.

Dotyczy