ODataMediaTypeFormatterCollectionExtensions.InsertRange Method (MediaTypeFormatterCollection, Int32, IEnumerable<MediaTypeFormatter>)

 

Note: This API is now obsolete.

Inserts the elements of a collection into the MediaTypeFormatterCollection at the specified index.

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

Syntax

[ObsoleteAttribute("This method is obsolete; use the InsertRange method in the MediaTypeFormatterCollection class.")]
public static void InsertRange(
    this MediaTypeFormatterCollection collection,
    int index,
    IEnumerable<MediaTypeFormatter> items
)
public:
[ExtensionAttribute]
[ObsoleteAttribute("This method is obsolete; use the InsertRange method in the MediaTypeFormatterCollection class.")]
static void InsertRange(
    MediaTypeFormatterCollection^ collection,
    int index,
    IEnumerable<MediaTypeFormatter^>^ items
)
[<ObsoleteAttribute("This method is obsolete; use the InsertRange method in the MediaTypeFormatterCollection class.")>]
static member InsertRange : 
        collection:MediaTypeFormatterCollection *
        index:int *
        items:IEnumerable<MediaTypeFormatter> -> unit
<ExtensionAttribute>
<ObsoleteAttribute("This method is obsolete; use the InsertRange method in the MediaTypeFormatterCollection class.")>
Public Shared Sub InsertRange (
    collection As MediaTypeFormatterCollection,
    index As Integer,
    items As IEnumerable(Of MediaTypeFormatter)
)

Parameters

  • index
    Type: System.Int32

    The zero-based index at which the new elements should be inserted.

See Also

ODataMediaTypeFormatterCollectionExtensions Class
System.Web.Http Namespace

Return to top