共用方式為


UrlMappingCollection.Item[] 屬性

定義

取得或設定集合中的 UrlMapping

多載

Item[Int32]

取得或設定在指定索引處的 UrlMapping 物件。

Item[String]

取得具有指定之名稱的 UrlMapping 物件。

Item[Int32]

取得或設定在指定索引處的 UrlMapping 物件。

public:
 property System::Web::Configuration::UrlMapping ^ default[int] { System::Web::Configuration::UrlMapping ^ get(int index); void set(int index, System::Web::Configuration::UrlMapping ^ value); };
public System.Web.Configuration.UrlMapping this[int index] { get; set; }
member this.Item(int) : System.Web.Configuration.UrlMapping with get, set
Default Public Property Item(index As Integer) As UrlMapping

參數

index
Int32

要取得的物件索引。

屬性值

UrlMapping

位於指定索引處的物件。

適用於

Item[String]

取得具有指定之名稱的 UrlMapping 物件。

public:
 property System::Web::Configuration::UrlMapping ^ default[System::String ^] { System::Web::Configuration::UrlMapping ^ get(System::String ^ name); };
public System.Web.Configuration.UrlMapping this[string name] { get; }
member this.Item(string) : System.Web.Configuration.UrlMapping
Default Public ReadOnly Property Item(name As String) As UrlMapping

參數

name
String

集合物件的名稱。

屬性值

UrlMapping

具有指定名稱的集合物件。

適用於