RoleServiceManager.Path 属性

定义

获取或设置角色服务的路径。

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

属性值

自定义角色 Web 服务的路径。

例外

在控件层次结构中设置了多个唯一路径。

注解

Path如果未设置 属性,则返回值为 String.Empty。 在这种情况下,ASP.NET 使用与以下内部默认路径对应的内置身份验证 Web 服务:~/RolesService.svc。 如果将 设置为 Path 空字符串或 设置为 null,则会出现相同的行为。

Path可以在 控件或关联ScriptManagerProxy控件中指定ScriptManager。 在 级别设置 ScriptManagerProxyPath,以下条件为 true:

  • 如果控件层次结构中有多个代理对象, Path 则不必为每个代理实例设置。

  • 如果 Path 为代理对象显式设置 ,则对于为其设置此属性的所有其他代理对象,该值必须相同。 如果为控件层次结构中的不同代理对象设置不同的路径,则会引发异常 ArgumentException

适用于