This documentation is archived and is not being maintained.

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:
property String^ Path {
	String^ get ();
	void set (String^ value);
}

Property Value

Type: System::String
The path of the custom role Web service.

ExceptionCondition
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 nullptr.

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

Supported in: 4, 3.5

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: