RouteCollection.Item[String] 屬性

定義

取得集合中具有所指定名稱的路由。

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

參數

name
String

識別要取得之路由的值。

屬性值

具有所指定名稱的物件,或者,如果 namenull、空字串,或不符合集合中的任何路由,則為 null

備註

GetReadLock使用 方法和 GetWriteLock 方法,確定您與集合互動,而不會與其他進程發生衝突。

適用於

另請參閱