RuntimeEnvironment.SystemConfigurationFile Propiedad

Definición

Obtiene la ruta de acceso al archivo de configuración del sistema.

public:
 static property System::String ^ SystemConfigurationFile { System::String ^ get(); };
public static string SystemConfigurationFile { get; }
static member SystemConfigurationFile : string
Public Shared ReadOnly Property SystemConfigurationFile As String

Valor de propiedad

Ruta de acceso al archivo de configuración del sistema.

Excepciones

Solo .NET Core y .NET 5+: en todos los casos.

Ejemplos

En el ejemplo de código siguiente se muestra la SystemConfigurationFile propiedad . Este ejemplo de código forma parte de un ejemplo más grande proporcionado para la RuntimeEnvironment clase .

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

Se aplica a