ODataMediaTypeFormatterCollectionExtensions.AddRange Method

Adds the elements of the specified collection to the end of the MediaTypeFormatterCollection .

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Sub AddRange ( _
    collection As MediaTypeFormatterCollection, _
    items As IEnumerable(Of MediaTypeFormatter) _
)
'Usage
Dim collection As MediaTypeFormatterCollection 
Dim items As IEnumerable(Of MediaTypeFormatter)

collection.AddRange(items)
public static void AddRange(
    this MediaTypeFormatterCollection collection,
    IEnumerable<MediaTypeFormatter> items
)
[ExtensionAttribute]
public:
static void AddRange(
    MediaTypeFormatterCollection^ collection, 
    IEnumerable<MediaTypeFormatter^>^ items
)
static member AddRange : 
        collection:MediaTypeFormatterCollection * 
        items:IEnumerable<MediaTypeFormatter> -> unit
public static function AddRange(
    collection : MediaTypeFormatterCollection, 
    items : IEnumerable<MediaTypeFormatter>
)

Parameters

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type MediaTypeFormatterCollection. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=vs.111) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.111).

See Also

Reference

ODataMediaTypeFormatterCollectionExtensions Class

System.Web.Http Namespace