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
- collection
Type: System.Net.Http.Formatting.MediaTypeFormatterCollection
index
Type: System.Int32The zero-based index at which the new elements should be inserted.
items
Type: System.Collections.Generic.IEnumerable<MediaTypeFormatter>The items that should be inserted into the MediaTypeFormatterCollection. The items collection itself cannot be null, but it can contain elements that are null.
See Also
ODataMediaTypeFormatterCollectionExtensions Class
System.Web.Http Namespace
Return to top