Compartilhar via


/1[], Int32)

Copies the 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 KeyValuePair(Of String, IHttpRoute)(), _
    arrayIndex As Integer _
)
'Usage
Dim instance As HttpRouteCollection
Dim array As KeyValuePair(Of String, IHttpRoute)()
Dim arrayIndex As Integer

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

Parameters

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

See Also

Reference

HttpRouteCollection Class

CopyTo Overload

System.Web.Http Namespace