RoleServiceManager.Path Property

Definition

Gets or sets the path of the role service.

public string Path { get; set; }

Property Value

The path of the custom role Web service.

Exceptions

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

Remarks

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.

Applies to

Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1