ScriptManager.RoleService Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the RoleServiceManager object that is associated with the current ScriptManager instance.
public:
property System::Web::UI::RoleServiceManager ^ RoleService { System::Web::UI::RoleServiceManager ^ get(); };
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)]
public System.Web.UI.RoleServiceManager RoleService { get; }
[<System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)>]
member this.RoleService : System.Web.UI.RoleServiceManager
Public ReadOnly Property RoleService As RoleServiceManager
Property Value
The RoleServiceManager object for the current ScriptManager instance.
- Attributes
Remarks
The RoleServiceManager object that is returned by this property represents the role service that is registered with the page. The role service can be defined in the ScriptManager control or in an associated ScriptManagerProxy control. You can use the ASP.NET role service or use a custom role service. You can add the custom service in markup by including a RoleService
element inside the asp:ScriptManager
element on the page, as shown in the following example:
<asp:ScriptManager ID="SM1" runat="server">
<RoleService Path="MyRoleService.asmx" LoadRoles="True" />
</asp:ScriptManager>
You can also programmatically configure the RoleServiceManager object. Services are registered with the ScriptManager control during the page's PreRender life-cycle stage.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for