Publish.ParseUrl(String, String, String) Método

Definição

Analisa uma URL e retorna a URL base e partes da raiz virtual.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)

Parâmetros

FullUrl
String

O endereço de URL completo para a raiz virtual.The complete URL address for the virtual root.

BaseUrl
String

Quando este método retornar, este parâmetro conterá o endereço de URL base.When this method returns, this parameter contains the base URL address.

VirtualRoot
String

Quando este método retornar, este parâmetro conterá o nome da raiz virtual.When this method returns, this parameter contains the name of the virtual root.

Exceções

FullUrl é null.FullUrl is null.

Foi encontrado um erro ao resolver o nome do host local.An error is encountered when resolving the local host name.

O chamador não tem permissão para acessar as informações de DNS.The caller does not have permission to access DNS information.

FullUrl está vazio.FullUrl is empty.

- ou --or- O esquema especificado em FullUrl é inválido.The scheme specified in FullUrl is invalid.

- ou --or- FullUrl contém muitas barras “/”.FullUrl contains too many slashes.

- ou --or- A senha especificada em FullUrl é inválida.The password specified in FullUrl is invalid.

- ou --or- O nome do host especificado em FullUrl é inválido.The host name specified in FullUrl is invalid.

- ou --or- O nome do arquivo especificado em FullUrl é inválido.The file name specified in FullUrl is invalid.

Aplica-se a