ScriptManager.ProfileService 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
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
属性值
当前ProfileServiceManagerScriptManager实例的对象。
- 属性
注解
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。