ScriptingRoleServiceSection Class
Represents the configuration section for role-service settings.
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
The ScriptingRoleServiceSection class enables you to programmatically access and modify the roleService element of the configuration section for using AJAX functionality in ASP.NET.
The role service is typically used to retrieve role information for the user who is logged on by using an asynchronous Web service call.
The following configuration file excerpt shows how to declaratively specify values for the Enabled property of the ScriptingRoleServiceSection class.
<system.web.extensions>
<scripting>
<webServices>
<roleService enabled="true" />
</webServices>
</scripting>
</system.web.extensions>
The following example shows how to access the ScriptingRoleServiceSection element programmatically.
- AspNetHostingPermission
for operating in a hosted environment. Demand value: LinkDemand; Permission value: Minimal.
System.Configuration.ConfigurationElement
System.Configuration.ConfigurationSection
System.Web.Configuration.ScriptingRoleServiceSection
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.