ScriptManager.ProfileService プロパティ

定義

現在のProfileServiceManager インスタンスに関連付けられているScriptManager オブジェクトを取得します。

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

プロパティ値

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

属性

注釈

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

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

<asp:ScriptManager ID="SM1" runat="server">
  <ProfileService LoadProperties="propertyA,propertyB"
    Path="MyProfileService.asmx" />
</asp:ScriptManager>

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

適用対象