语言

ServiceReference.Path 属性

定义

获取或设置引用的 Web 服务的路径。

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

属性值

引用的 Web 服务的路径。

注解

该 Path 属性只能指向本地 Web 服务。 换句话说,此属性只能指向启用了 AJAX 的同一域中的 Web 服务 ASP.NET Web 应用程序。 Path 可以是相对路径、应用程序相对路径、域相对路径或绝对路径。

InlineScript如果该属性设置为true,则必须使用指向与包含ServiceReference实例的页面相同的 Web 应用程序的相对路径。

适用于