ConfigurationLocation Class


Represents a location element within a configuration file.

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


public ref class ConfigurationLocation 


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


Determines whether the specified object is equal to the current object.(Inherited from Object.)


Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)


Serves as the default hash function. (Inherited from Object.)


Gets the Type of the current instance.(Inherited from Object.)


Creates a shallow copy of the current Object.(Inherited from Object.)


This API supports the product infrastructure and is not intended to be used directly from your code. Creates an instance of a Configuration object.


Returns a string that represents the current object.(Inherited from Object.)

An instance of the ConfigurationLocation class represents a single location element within a configuration file. Locations are used to specify configuration settings that apply only to a specified resource, such as a specific page, file, or subdirectory, within your Web application. Use the ConfigurationLocation class to obtain the path and the Configuration object that applies to the specified resource.

In the following code example, the Web configuration for the application MySampleApp is loaded, and then the locations defined in the configuration are displayed.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top