ScriptManager.ProfileService ScriptManager.ProfileService ScriptManager.ProfileService ScriptManager.ProfileService Property

Definición

Obtiene el objeto ProfileServiceManager asociado a la instancia de ScriptManager actual.Gets the ProfileServiceManager object that is associated with the current ScriptManager instance.

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; }
member this.ProfileService : System.Web.UI.ProfileServiceManager
Public ReadOnly Property ProfileService As ProfileServiceManager

Valor de propiedad

Comentarios

La ProfileServiceManager objeto devuelto por esta propiedad representa el servicio de perfil que se registra con la página.The ProfileServiceManager object that is returned by this property represents the profile service that is registered with the page. El servicio de perfil se puede definir en el ScriptManager control o en un asociado ScriptManagerProxy control.The profile service can be defined in the ScriptManager control or in an associated ScriptManagerProxy control.

Puede utilizar el servicio de perfil ASP.NET o usar un servicio de perfil personalizado.You can use the ASP.NET profile service or use a custom profile service. Puede agregar el servicio personalizado en el marcado mediante la inclusión de un ProfileService elemento dentro de la asp:ScriptManager elemento en la página, tal como se muestra en el ejemplo siguiente.You can add the custom service in markup by including a ProfileService element inside the asp:ScriptManager element on the page, as shown in the following example.

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

Puede configurar mediante programación el ProfileServiceManager objeto.You can also programmatically configure the ProfileServiceManager object. Los servicios se registran con el ScriptManager control durante la página PreRender fase del ciclo de vida.Services are registered with the ScriptManager control during the page's PreRender life-cycle stage.

Se aplica a