Compartilhar via


/1[], Int32)

Copies the route names and IHttpRoute instances of the collection to an array, starting at a particular array index.

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

Syntax

'Declaration
Public Overridable Sub CopyTo ( _
    array As IHttpRoute(), _
    arrayIndex As Integer _
)
'Usage
Dim instance As HttpRouteCollection
Dim array As IHttpRoute()
Dim arrayIndex As Integer

instance.CopyTo(array, arrayIndex)
public virtual void CopyTo(
    IHttpRoute[] array,
    int arrayIndex
)
public:
virtual void CopyTo(
    array<IHttpRoute^>^ array, 
    int arrayIndex
)
abstract CopyTo : 
        array:IHttpRoute[] * 
        arrayIndex:int -> unit 
override CopyTo : 
        array:IHttpRoute[] * 
        arrayIndex:int -> unit 
public function CopyTo(
    array : IHttpRoute[], 
    arrayIndex : int
)

Parameters

  • arrayIndex
    Type: System.Int32
    The zero-based index in array at which copying begins.

Implements

ICollection<T>.CopyTo(T[], Int32)

See Also

Reference

HttpRouteCollection Class

CopyTo Overload

System.Web.Http Namespace