Share via


AuthenticationServiceManager.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 中的 AJAX 功能會接著使用對應至下列內部預設路徑的內建驗證 Web 服務:~/ScriptServices_AuthenticationService.asmx。 如果您設定 Path 為空值或 null ,就會發生相同的行為。

Path可以在 控制項或相關聯的 ScriptManagerProxy 控制項中指定 ScriptManager 。 當 Path 設定于 層級時 ScriptManagerProxy ,適用下列注意事項:

  • 如果控制階層中有多個 Proxy, Path 則不需要在每個 Proxy 實例上設定。

  • 如果在 Path Proxy 實例上明確設定 ,則此屬性明確設定之所有其他 Proxy 的值必須相同。

適用於