Compartir a través de


VirtualDirectoryMappingCollection.Add(String, VirtualDirectoryMapping) Método

Definición

Agrega un objeto VirtualDirectoryMapping a la instancia de VirtualDirectoryMappingCollection.

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)

Parámetros

virtualDirectory
String

Objeto String que contiene la ruta de acceso del directorio virtual.

Excepciones

mapping es null.

virtualDirectory ya existe en VirtualDirectoryMappingCollection.

Se aplica a