Compartilhar via


Propriedade RuntimeEnvironment.SystemConfigurationFile

 

Dica

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

Sintaxe

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

Valor da Propriedade

Type: System.String

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

Exemplos

O exemplo de código a seguir demonstra o SystemConfigurationFile propriedade. Este exemplo de código é 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);

Segurança

FileIOPermission

for accessing files and folders. Associated enumeration: F:System.Security.Permissions.FileIOPermissionAccess.PathDiscovery

Informações de Versão

.NET Framework
Disponível desde 1.1

Confira Também

Classe RuntimeEnvironment
Namespace System.Runtime.InteropServices

Retornar ao início