語言

Publish.ParseUrl(String, String, String) 方法

定義

解析 URL 並回傳基礎 URL 及虛擬根部分。

public:
 static void ParseUrl(System::String ^ FullUrl, [Runtime::InteropServices::Out] System::String ^ % BaseUrl, [Runtime::InteropServices::Out] System::String ^ % VirtualRoot);
public static void ParseUrl(string FullUrl, out string BaseUrl, out string VirtualRoot);
static member ParseUrl : string * string * string -> unit
Public Shared Sub ParseUrl (FullUrl As String, ByRef BaseUrl As String, ByRef VirtualRoot As String)

參數

FullUrl
String

虛擬根的完整網址位址。

BaseUrl
String

當此方法回傳時,該參數包含基礎 URL 位址。

VirtualRoot
String

當此方法回傳時,該參數包含虛擬根的名稱。

例外狀況

FullUrl 是 null。

解析本地主機名稱時會遇到錯誤。

呼叫者無權存取 DNS 資訊。

FullUrl 空無一人。

-或-

該 FullUrl 格式在 中指定的方案無效。

-或-

FullUrl 包含太多的斬擊。

-或-

該 FullUrl 密碼在 中指定為無效。

-或-

該 FullUrl 名稱中指定的主機名稱無效。

-或-

中 FullUrl 指定的檔名無效。

適用於