RuntimeEnvironment.SystemConfigurationFile Tulajdonság

Definíció

Lekéri a rendszerkonfigurációs fájl elérési útját.

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

Tulajdonság értéke

A rendszerkonfigurációs fájl elérési útja.

Kivételek

.NET Core és .NET 5+ csak: Minden esetben.

Példák

Az alábbi példakód a tulajdonságot SystemConfigurationFile mutatja be. Ez a példakód egy nagyobb, az RuntimeEnvironment osztályhoz tartozó példa része.

// Show the path of the machine's configuration file.
Console::WriteLine("System configuration file: {0}",
    RuntimeEnvironment::SystemConfigurationFile);
// Show the path of the machine's configuration file.
Console.WriteLine("System configuration file: {0}", RuntimeEnvironment.SystemConfigurationFile);
' Show the path of the machine's configuration file.
Console.WriteLine("System configuration file: {0}", RuntimeEnvironment.SystemConfigurationFile)

A következőre érvényes: