RuntimeEnvironment.SystemConfigurationFile Eigenschaft
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Ruft den Pfad zur Systemkonfigurationsdatei ab.
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
Eigenschaftswert
Der Pfad zur Systemkonfigurationsdatei.
Ausnahmen
Nur .NET Core und .NET 5+ : In allen Fällen.
Beispiele
Im folgenden Codebeispiel wird die SystemConfigurationFile Eigenschaft veranschaulicht. Dieses Codebeispiel ist Teil eines größeren Beispiels, das für die RuntimeEnvironment Klasse bereitgestellt wird.
// 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)