Compartilhar via


HttpRouteCollection.Item Property (Int32)

Gets or sets the element at the specified index.

Namespace:  System.Web.Http
Assembly:  System.Web.Http (in System.Web.Http.dll)

Syntax

'Declaration
Public Overridable ReadOnly Property Item ( _
    index As Integer _
) As IHttpRoute
    Get
'Usage
Dim instance As HttpRouteCollection
Dim index As Integer
Dim value As IHttpRoute

value = instance.Item(index)
public virtual IHttpRoute this[
    int index
] { get; }
public:
virtual property IHttpRoute^ Item[int index] {
    IHttpRoute^ get (int index);
}
abstract Item : IHttpRoute
override Item : IHttpRoute
JScript supports the use of indexed properties, but not the declaration of new ones.

Parameters

  • index
    Type: System.Int32
    The zero-based index of the element to get or set.

Property Value

Type: System.Web.Http.Routing.IHttpRoute
The IHttpRoute at the specified index.

See Also

Reference

HttpRouteCollection Class

Item Overload

System.Web.Http Namespace