語言

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

屬性值

自訂認證網路服務的路徑。

例外狀況

控制階層中設定了多條獨特路徑。

備註

若 Path 該屬性未被設定,則回傳值為 String.Empty。 在這種情況下,ASP.NET 中的 AJAX 功能將使用內建的認證網路服務,對應以下內部預設路徑:~/ScriptServices_AuthenticationService.asmx。 如果你設定 Path 為空值或 null,也會發生同樣的行為。

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

  • 如果控制階層 Path 中有多個代理,則不必在每個代理實例上設定。

  • 若 Path 在代理實例上明確設定,則所有明確設定此屬性的其他代理節點的值必須相同。

適用於