Bewerken

Share via


WebConfigurationFileMap Constructors

Definition

Initializes a new instance of the WebConfigurationFileMap class.

Overloads

WebConfigurationFileMap()

Creates a new instance of the WebConfigurationFileMap class.

WebConfigurationFileMap(String)

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

WebConfigurationFileMap()

Creates a new instance of the WebConfigurationFileMap class.

public:
 WebConfigurationFileMap();
public WebConfigurationFileMap ();
Public Sub New ()

Applies to

WebConfigurationFileMap(String)

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

public:
 WebConfigurationFileMap(System::String ^ machineConfigFileName);
public WebConfigurationFileMap (string machineConfigFileName);
new System.Web.Configuration.WebConfigurationFileMap : string -> System.Web.Configuration.WebConfigurationFileMap
Public Sub New (machineConfigFileName As String)

Parameters

machineConfigFileName
String

The machine configuration file name with the complete physical path (for example, c:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG\machine.config).

Remarks

You use this constructor when you are targeting a version of the .NET Framework that is earlier than the latest one that is installed on the computer. The method enables you to specify a machine configuration file that is appropriate to the version of the .NET Framework that you are targeting.

Note

Even though the constructor only accepts the path to the Machine.config file, the configuration system will also read the root Web.config file in the same directory where the Machine.config file exists.

See also

Applies to