WebApplicationInformation.ApplicationPath Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient le chemin d'accès physique à l'application.
public:
property System::String ^ ApplicationPath { System::String ^ get(); };
public string ApplicationPath { get; }
member this.ApplicationPath : string
Public ReadOnly Property ApplicationPath As String
Valeur de propriété
Chemin d'accès physique à l'application.
Exemples
L’exemple de code suivant montre comment obtenir le chemin physique de l’application.
public string GetApplicationPath()
{
// Get the name of the application path.
return (string.Format(
"Application path: {0}",
ApplicationInformation.ApplicationPath));
}
Public Function GetApplicationPath() As String
' Get the name of the application path.
Return String.Format( _
"Application path: {0}", _
ApplicationInformation.ApplicationPath())
End Function 'GetApplicationPath
Remarques
Cette propriété nécessite des autorisations appropriées pour être accessible. Reportez-vous à la section Autorisations.