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

屬性值

String

參考 Web 服務的路徑。

備註

屬性 Path 只能指向本機 Web 服務。 換句話說,此屬性只能指向與啟用 AJAX 的相同網域中的 Web 服務,ASP.NET Web 應用程式。 Path 可以是相對、應用程式相對、網域相對或絕對路徑。

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

適用於