RuntimeEnvironment.SystemConfigurationFile Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com 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);

FileIOPermission

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

.NET Framework
Available since 1.1
Return to top
Show: