Edit

Share via


VirtualDirectoryMappingCollection.Add(String, VirtualDirectoryMapping) Method

Definition

public:
 void Add(System::String ^ virtualDirectory, System::Web::Configuration::VirtualDirectoryMapping ^ mapping);
public void Add (string virtualDirectory, System.Web.Configuration.VirtualDirectoryMapping mapping);
member this.Add : string * System.Web.Configuration.VirtualDirectoryMapping -> unit
Public Sub Add (virtualDirectory As String, mapping As VirtualDirectoryMapping)

Parameters

virtualDirectory
String

A String that contains the virtual directory path.

Exceptions

mapping is null.

virtualDirectory already exists in the VirtualDirectoryMappingCollection.

Applies to