Partager via


VirtualDirectoryMappingCollection.Add(String, VirtualDirectoryMapping) Méthode

Définition

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)

Paramètres

virtualDirectory
String

String qui contient le chemin d'accès du répertoire virtuel.

Exceptions

mapping a la valeur null.

virtualDirectory existe déjà dans le VirtualDirectoryMappingCollection.

S’applique à