RuntimeEnvironment.SystemConfigurationFile Propriedade

Definição

Atenção

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

Obtém o caminho para o ficheiro de configuração do sistema.

public:
 static property System::String ^ SystemConfigurationFile { System::String ^ 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; }
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}")>]
static member SystemConfigurationFile : string
static member SystemConfigurationFile : string
Public Shared ReadOnly Property SystemConfigurationFile As String

Valor de Propriedade

O caminho para o ficheiro de configuração do sistema.

Atributos

Exceções

.NET Core e .NET 5+ apenas: Em todos os casos.

Exemplos

O seguinte exemplo de código demonstra a SystemConfigurationFile propriedade. Este exemplo de código faz parte de um exemplo maior fornecido para a 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)

Aplica-se a