HttpRouteCollection.Item Property (String)
Gets or sets the element with the specified route name.
Namespace: System.Web.Http
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public Overridable ReadOnly Property Item ( _
name As String _
) As IHttpRoute
Get
'Usage
Dim instance As HttpRouteCollection
Dim name As String
Dim value As IHttpRoute
value = instance.Item(name)
public virtual IHttpRoute this[
string name
] { get; }
public:
virtual property IHttpRoute^ Item[String^ name] {
IHttpRoute^ get (String^ name);
}
abstract Item : IHttpRoute
override Item : IHttpRoute
JScript supports the use of indexed properties, but not the declaration of new ones.
Parameters
- name
Type: System.String
The route name.
Property Value
Type: System.Web.Http.Routing.IHttpRoute
The IHttpRoute at the specified index.