RuntimeEnvironment.GetRuntimeDirectory Méthode

Définition

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())

S’applique à