共用方式為


ServiceReference.Path 屬性

定義

取得或設定所參考網路服務的路徑。

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

屬性值

參考的網路服務路徑。

備註

Path 屬性只能指向本地的 Web 服務。 換句話說,這個屬性只能指向與你啟用 AJAX 的 ASP.NET 網頁應用程式同一網域內的 Web 服務。 Path 可以是相對路徑、應用相對路徑、領域路徑相對路徑或絕對路徑。

如果屬性 InlineScript 設定為 true,則必須使用指向與包含實 ServiceReference 例頁面相同的網頁應用程式的相對路徑。

適用於