ConfigurationLocation.Path 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 relative path to the resource whose configuration settings are represented by this ConfigurationLocation object.

Namespace:   System.Configuration
Assembly:  System.Configuration (in System.Configuration.dll)

public string Path { get; }

Property Value

Type: System.String

The relative path to the resource whose configuration settings are represented by this ConfigurationLocation.

The path that is returned by the Path property is relative to the root of your Web site.

System_CAPS_noteNote

The Path property might contain a comma-delimited list of paths to which the configuration setting applies.

The following code example shows how to access the Path property and display the value returned to the console.

Console.WriteLine("Location Path: {0}", myLocation.Path);

.NET Framework
Available since 2.0
Return to top
Show: