RuntimeEnvironment.GetRuntimeDirectory Méthode

Définition

Retourne le répertoire d’installation du Common Language Runtime.

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 du répertoire d’installation du Common Language Runtime.

Exemples

L'exemple suivant montre l'appel à 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())

S’applique à