RouteCollection.Item[String] 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得集合中具有指定名稱的路由。
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 ,確保你與收藏互動時不會與其他流程產生衝突。