Прочетете на английски Редактиране

Споделяне чрез


VirtualDirectoryMappingCollection.Item[] Property

Definition

Gets or sets the VirtualDirectoryMapping object.

Overloads

Item[Int32]

Gets or sets the VirtualDirectoryMapping object at the specified index location.

Item[String]

Gets or sets the VirtualDirectoryMapping object based on the specified virtual directory name.

Item[Int32]

Gets or sets the VirtualDirectoryMapping object at the specified index location.

C#
public System.Web.Configuration.VirtualDirectoryMapping this[int index] { get; }

Parameters

index
Int32

An integer value that specifies a particular VirtualDirectoryMapping object within the VirtualDirectoryMappingCollection.

Property Value

A VirtualDirectoryMapping object.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

Item[String]

Gets or sets the VirtualDirectoryMapping object based on the specified virtual directory name.

C#
public System.Web.Configuration.VirtualDirectoryMapping this[string virtualDirectory] { get; }

Parameters

virtualDirectory
String

A string that contains the name of the VirtualDirectoryMapping object.

Property Value

A VirtualDirectoryMapping object.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1