Propiedad RuntimeEnvironment.SystemConfigurationFile
Publicado: octubre de 2016
Obtiene la ruta de acceso al archivo de configuración del sistema.
Espacio de nombres: System.Runtime.InteropServices
Ensamblado: mscorlib (en mscorlib.dll)
Sintaxis
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 de propiedad
Type: System.String
La ruta de acceso al archivo de configuración del sistema.
Ejemplos
En el ejemplo de código siguiente se muestra el SystemConfigurationFile propiedad. Este ejemplo de código forma parte de un ejemplo mayor proporcionado para el 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);
Seguridad
for accessing files and folders. Associated enumeration: F:System.Security.Permissions.FileIOPermissionAccess.PathDiscovery
Información de versión
.NET Framework
Disponible desde 1.1
Ver también
Clase RuntimeEnvironment
Espacio de nombres System.Runtime.InteropServices
Volver al principio