ScriptManager.AuthenticationService Propriedade

Definição

Obtém o AuthenticationServiceManager objeto associado à instância atual ScriptManager .

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

Valor de Propriedade

O AuthenticationServiceManager objeto para a instância atual ScriptManager .

Atributos

Observações

O AuthenticationServiceManager objeto devolvido por esta propriedade representa o serviço de autenticação registado na página. O serviço de autenticação pode ser definido no ScriptManager controlo ou num controlo associado ScriptManagerProxy .

Pode usar o serviço de autenticação ASP.NET ou usar um serviço de autenticação personalizado. Pode adicionar o serviço personalizado na marcação incluindo um AuthenticationService elemento dentro do asp:ScriptManager elemento na página, como mostrado no exemplo seguinte.

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

Também podes configurar programaticamente o AuthenticationServiceManager objeto. Os serviços são registados no ScriptManager controlo durante a fase do ciclo de PreRender vida da página.

Aplica-se a