HostingEnvironment.ApplicationVirtualPath Propriedade

Definição

Obtém o caminho virtual raiz do aplicativo.Gets the root virtual path of the application.

public:
 static property System::String ^ ApplicationVirtualPath { System::String ^ get(); };
public static string ApplicationVirtualPath { get; }
member this.ApplicationVirtualPath : string
Public Shared ReadOnly Property ApplicationVirtualPath As String

Valor da propriedade

String

O caminho virtual raiz do aplicativo sem nenhuma barra (/) à direita.The root virtual path of the application with no trailing slash (/).

Comentários

A ApplicationVirtualPath propriedade sempre retorna " /" como o primeiro caractere do valor retornado.The ApplicationVirtualPath property always returns "/" as the first character of the returned value. Se o aplicativo estiver localizado na raiz do site, o valor de retorno será apenas " /" .If the application is located in the root of the website, the return value is just "/".

Aplica-se a