語言

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

這個數值標示了要取得的路徑。

屬性值

擁有指定名稱的物件,或 null 若 name 為 null,則為空字串,或與集合中的任何路由不匹配。

備註

善用這個 GetReadLock 方法和方法 GetWriteLock ,確保你與收藏互動時不會與其他流程產生衝突。

適用於

另請參閱