RuntimeEnvironment.SystemConfigurationFile Eigenschap
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Hiermee haalt u het pad naar het configuratiebestand van het systeem op.
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
Waarde van eigenschap
Het pad naar het configuratiebestand van het systeem.
Uitzonderingen
.NET Core en .NET 5+ alleen: in alle gevallen.
Voorbeelden
In het volgende codevoorbeeld ziet u de SystemConfigurationFile eigenschap. Dit codevoorbeeld maakt deel uit van een groter voorbeeld voor de RuntimeEnvironment klasse.
// 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)