RuntimeEnvironment.GetRuntimeDirectory Méthode
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.
Retourne le répertoire dans lequel le Common Language Runtime est installé.
public:
static System::String ^ GetRuntimeDirectory();
public static string GetRuntimeDirectory();
static member GetRuntimeDirectory : unit -> string
Public Shared Function GetRuntimeDirectory () As String
Retours
Chaîne qui contient le chemin d’accès au répertoire où le Common Language Runtime est installé.
Exemples
L’exemple suivant illustre l’appel de la méthode GetRuntimeDirectory. Cet exemple de code fait partie d’un exemple plus grand fourni pour la RuntimeEnvironment classe.
// Show the path where the CLR was loaded from.
Console::WriteLine("Runtime directory: {0}",
RuntimeEnvironment::GetRuntimeDirectory());
// Show the path where the CLR was loaded from.
Console.WriteLine("Runtime directory: {0}", RuntimeEnvironment.GetRuntimeDirectory());
' Show the path where the CLR was loaded from.
Console.WriteLine("Runtime directory: {0}", RuntimeEnvironment.GetRuntimeDirectory())