ScriptManager.AuthenticationService プロパティ

定義

現在のAuthenticationServiceManager インスタンスに関連付けられている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

プロパティ値

現在のScriptManager インスタンスのAuthenticationServiceManager オブジェクト。

属性

注釈

このプロパティによって返される AuthenticationServiceManager オブジェクトは、ページに登録されている認証サービスを表します。 認証サービスは、 ScriptManager コントロールまたは関連付けられている ScriptManagerProxy コントロールで定義できます。

ASP.NET 認証サービスを使用することも、カスタム認証サービスを使用することもできます。 次の例に示すように、asp:ScriptManager要素内にAuthenticationService要素を含めることで、カスタム サービスをマークアップに追加できます。

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

AuthenticationServiceManager オブジェクトをプログラムで構成することもできます。 サービスは、ページの PreRender ライフサイクル ステージ中にScriptManager コントロールに登録されます。

適用対象