RuntimeEnvironment.SystemConfigurationFile-Eigenschaft
Veröffentlicht: Oktober 2016
Ruft den Pfad der Konfigurationsdatei System.
Namespace: System.Runtime.InteropServices
Assembly: mscorlib (in mscorlib.dll)
Syntax
public static string SystemConfigurationFile { get; }
public:
property String^ SystemConfigurationFile {
static String^ get();
}
static member SystemConfigurationFile : string with get
Public Shared ReadOnly Property SystemConfigurationFile As String
Eigenschaftswert
Type: System.String
Der Pfad zur Systemkonfigurationsdatei.
Beispiele
Das folgende Codebeispiel veranschaulicht die SystemConfigurationFile Eigenschaft. 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)
// Show the path of the machine's configuration file.
Console::WriteLine("System configuration file: {0}",
RuntimeEnvironment::SystemConfigurationFile);
Sicherheit
for accessing files and folders. Associated enumeration: F:System.Security.Permissions.FileIOPermissionAccess.PathDiscovery
Versionsinformationen
.NET Framework
Verfügbar seit 1.1
Siehe auch
RuntimeEnvironment-Klasse
System.Runtime.InteropServices-Namespace
Zurück zum Anfang