RuntimeEnvironment.SystemConfigurationFile Property


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

Gets the path to the system configuration file.

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

public static string SystemConfigurationFile { get; }

Property Value

Type: System.String

The path to the system configuration file.

The following code example demonstrates the SystemConfigurationFile property. This code example is part of a larger example provided for the RuntimeEnvironment class.

// Show the path of the machine's configuration file.
Console.WriteLine("System configuration file: {0}", RuntimeEnvironment.SystemConfigurationFile);


for accessing files and folders. Associated enumeration: FileIOPermissionAccess.PathDiscovery

.NET Framework
Available since 1.1
Return to top