Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
WebConfigurationFileMap Class
Collapse the table of content
Expand the table of content

WebConfigurationFileMap Class

Defines the configuration file mappings for a Web application. This class cannot be inherited.


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

public sealed class WebConfigurationFileMap : ConfigurationFileMap

The WebConfigurationFileMap type exposes the following members.

Public methodWebConfigurationFileMap()Creates a new instance of the WebConfigurationFileMap class.
Public methodWebConfigurationFileMap(String)Initializes a new instance of the WebConfigurationFileMap class by using the specified machine configuration file name.

Public propertyMachineConfigFilenameGets or sets the name of the machine configuration file name. (Inherited from ConfigurationFileMap.)
Public propertyVirtualDirectoriesGets the listed collection of virtual directories for a Web application.

Public methodCloneCreates a new instance of a WebConfigurationFileMap class with the same value as the existing instance. (Overrides ConfigurationFileMap.Clone().)
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

The WebConfigurationFileMap class is used to specify the Web configuration file hierarchy. By default, the configuration system uses the IIS metabase to determine the Web file hierarchy. If IIS is not installed, or if an application targets a version of the .NET Framework that is not the latest version that is installed on the server, the WebConfigurationFileMap class provides a means to define a custom hierarchy.

The WebConfigurationFileMap class can specify a single path or multiple paths related to configuration files.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 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.
© 2015 Microsoft