RoleServiceManager.Path Property

Definition

Gets or sets the path of the role service.

public:
 property System::String ^ Path { System::String ^ get(); void set(System::String ^ value); };
public string Path { get; set; }
member this.Path : string with get, set
Public Property Path As String

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