语言

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

标识要获取的路由的值。

属性值

具有指定名称的对象(如果nullname为null)是空字符串,或者与集合中的任何路由不匹配。

注解

GetReadLock使用方法和GetWriteLock方法确保与集合交互,而不会与其他进程发生冲突。

适用于

另请参阅