VirtualDirectoryMappingCollection.Add Method (String, VirtualDirectoryMapping)

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

public void Add(
	string virtualDirectory,
	VirtualDirectoryMapping mapping
)

Parameters

virtualDirectory
Type: System.String

A String that contains the virtual directory path.

mapping
Type: System.Web.Configuration.VirtualDirectoryMapping

A VirtualDirectoryMapping object.

Exception Condition
ArgumentNullException

mapping is null.

ArgumentException

virtualDirectory already exists in the VirtualDirectoryMappingCollection.

NotSupportedException

.NET Framework
Available since 2.0
Return to top
Show: