Configuration.Locations 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 locations defined within this Configuration object.

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

public ConfigurationLocationCollection Locations { get; }

Property Value

Type: System.Configuration.ConfigurationLocationCollection

A ConfigurationLocationCollection containing the locations defined within this Configuration object.

The Locations property applies only when the HasFile property returns true. If this configuration inherits all of its settings, or no locations are defined, an empty collection is returned.

.NET Framework
Available since 2.0
Return to top
Show: