RoleServiceManager.Path Property

 

Gets or sets the path of the role service.

Namespace:   System.Web.UI
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

public string Path { get; set; }

Property Value

Type: System.String

The path of the custom role Web service.

Exception Condition
ArgumentException

More than one unique path was set in the control hierarchy.

If the Path property is not set, the return value is String.Empty. In that case, ASP.NET uses the built-in authentication Web service that corresponds to the following internal default path: ~/RolesService.svc. The same behavior occurs if you set Path to an empty string or to null.

Path can be specified in the ScriptManager control or in an associated ScriptManagerProxy control. When Path is set at the ScriptManagerProxy level, the following conditions are true:

  • If there are multiple proxy objects in the control hierarchy, Path does not have to be set for each proxy instance.

  • If Path is explicitly set for a proxy object, the value must be the same for all other proxy objects that this property is set for. If you set different paths for different proxy objects in the control hierarchy, an ArgumentException exception is thrown.

.NET Framework
Available since 3.5
Return to top
Show: