Freigeben über


RuntimeEnvironment.SystemConfigurationFile-Eigenschaft

Ruft den Pfad der Systemkonfigurationsdatei ab.

Namespace: System.Runtime.InteropServices
Assembly: mscorlib (in mscorlib.dll)

Syntax

'Declaration
Public Shared ReadOnly Property SystemConfigurationFile As String
'Usage
Dim value As String

value = RuntimeEnvironment.SystemConfigurationFile
public static string SystemConfigurationFile { get; }
public:
static property String^ SystemConfigurationFile {
    String^ get ();
}
/** @property */
public static String get_SystemConfigurationFile ()
public static function get SystemConfigurationFile () : String

Eigenschaftenwert

Der Pfad der Systemkonfigurationsdatei.

Beispiel

Im folgenden Codebeispiel wird die SystemConfigurationFile-Eigenschaft veranschaulicht. Dieses Codebeispiel ist Teil eines umfangreicheren Beispiels für die 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);

.NET Framework-Sicherheit

Plattformen

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.

Versionsinformationen

.NET Framework

Unterstützt in: 2.0, 1.1, 1.0

Siehe auch

Referenz

RuntimeEnvironment-Klasse
RuntimeEnvironment-Member
System.Runtime.InteropServices-Namespace