RuntimeEnvironment.SystemConfigurationFile Proprietà

Definizione

Attenzione

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

Ottiene il percorso del file di configurazione del sistema.

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

Valore della proprietà

Percorso del file di configurazione del sistema.

Attributi

Eccezioni

Solo .NET Core e .NET 5+: In tutti i casi.

Esempio

Nell'esempio di codice seguente viene illustrata la SystemConfigurationFile proprietà . Questo esempio di codice fa parte di un esempio più grande fornito per la RuntimeEnvironment classe.

// 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)

Si applica a