Muokkaa

Jaa


Publish.ParseUrl(String, String, String) Method

Definition

Parses a URL and returns the base URL and virtual root portions.

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)

Parameters

FullUrl
String

The complete URL address for the virtual root.

BaseUrl
String

When this method returns, this parameter contains the base URL address.

VirtualRoot
String

When this method returns, this parameter contains the name of the virtual root.

Exceptions

FullUrl is null.

An error is encountered when resolving the local host name.

The caller does not have permission to access DNS information.

FullUrl is empty.

-or-

The scheme specified in FullUrl is invalid.

-or-

FullUrl contains too many slashes.

-or-

The password specified in FullUrl is invalid.

-or-

The host name specified in FullUrl is invalid.

-or-

The file name specified in FullUrl is invalid.

Applies to