Freigeben über


RuntimeEnvironment.SystemConfigurationFile Eigenschaft

Definition

Achtung

RuntimeEnvironment members SystemConfigurationFile, GetRuntimeInterfaceAsIntPtr, and GetRuntimeInterfaceAsObject are not supported and throw PlatformNotSupportedException.

Ruft den Pfad der Systemkonfigurationsdatei ab.

public:
 static property System::String ^ SystemConfigurationFile { System::String ^ get(); };
public static string SystemConfigurationFile { get; }
[System.Obsolete("RuntimeEnvironment members SystemConfigurationFile, GetRuntimeInterfaceAsIntPtr, and GetRuntimeInterfaceAsObject are not supported and throw PlatformNotSupportedException.", DiagnosticId="SYSLIB0019", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public static string SystemConfigurationFile { get; }
static member SystemConfigurationFile : string
[<System.Obsolete("RuntimeEnvironment members SystemConfigurationFile, GetRuntimeInterfaceAsIntPtr, and GetRuntimeInterfaceAsObject are not supported and throw PlatformNotSupportedException.", DiagnosticId="SYSLIB0019", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
static member SystemConfigurationFile : string
Public Shared ReadOnly Property SystemConfigurationFile As String

Eigenschaftswert

Der Pfad der Systemkonfigurationsdatei.

Attribute

Ausnahmen

Nur .NET Core und .NET 5 und höher: 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)

Gilt für: