ScriptManager.ProfileService Propriedade
Definição
Obtém o objeto ProfileServiceManager associado à instância ScriptManager atual.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; }
[<System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)>]
member this.ProfileService : System.Web.UI.ProfileServiceManager
Public ReadOnly Property ProfileService As ProfileServiceManager
Valor da propriedade
O objeto ProfileServiceManager da instância ScriptManager atual.The ProfileServiceManager object for the current ScriptManager instance.
- Atributos
Comentários
O ProfileServiceManager objeto retornado por essa propriedade representa o serviço de perfil registrado com a página.The ProfileServiceManager object that is returned by this property represents the profile service that is registered with the page. O serviço de perfil pode ser definido no ScriptManager controle ou em um ScriptManagerProxy controle associado.The profile service can be defined in the ScriptManager control or in an associated ScriptManagerProxy control.
Você pode usar o serviço de perfil ASP.NET ou usar um serviço de perfil personalizado.You can use the ASP.NET profile service or use a custom profile service. Você pode adicionar o serviço personalizado na marcação, incluindo um ProfileService elemento dentro do asp:ScriptManager elemento na página, conforme mostrado no exemplo a seguir.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>
Você também pode configurar o objeto programaticamente ProfileServiceManager .You can also programmatically configure the ProfileServiceManager object. Os serviços são registrados com o ScriptManager controle durante o estágio do ciclo de vida da página PreRender .Services are registered with the ScriptManager control during the page's PreRender life-cycle stage.