ExeConfigurationFileMap Class

 
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.

Defines the configuration file mapping for an .exe application. This class cannot be inherited.

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

System::Object
  System.Configuration::ConfigurationFileMap
    System.Configuration::ExeConfigurationFileMap

public ref class ExeConfigurationFileMap sealed : ConfigurationFileMap

NameDescription
System_CAPS_pubmethodExeConfigurationFileMap()

Initializes a new instance of the ExeConfigurationFileMap class.

System_CAPS_pubmethodExeConfigurationFileMap(String^)

Initializes a new instance of the ExeConfigurationFileMap class by using the specified machine configuration file name.

NameDescription
System_CAPS_pubpropertyExeConfigFilename

Gets or sets the name of the configuration file.

System_CAPS_pubpropertyLocalUserConfigFilename

Gets or sets the name of the configuration file for the local user.

System_CAPS_pubpropertyMachineConfigFilename

Gets or sets the name of the machine configuration file name.(Inherited from ConfigurationFileMap.)

System_CAPS_pubpropertyRoamingUserConfigFilename

Gets or sets the name of the configuration file for the roaming user.

NameDescription
System_CAPS_pubmethodClone()

Creates a copy of the existing ExeConfigurationFileMap object.(Overrides ConfigurationFileMap::Clone().)

System_CAPS_pubmethodEquals(Object^)

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

System_CAPS_pubmethodGetHashCode()

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

System_CAPS_pubmethodGetType()

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

System_CAPS_pubmethodToString()

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

The ExeConfigurationFileMap class provides a means to define a custom configuration file hierarchy for .exe applications. The ExeConfigurationFileMap class can specify a single path or multiple paths related to configuration files.

For an example that shows how to use this class, see the ConfigurationManager::OpenMappedExeConfiguration method.

.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
Show: