ODataMediaTypeFormatterCollectionExtensions.AddRange Method (MediaTypeFormatterCollection, IEnumerable<MediaTypeFormatter>)

 

Note: This API is now obsolete.

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

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

Parameters

See Also

ODataMediaTypeFormatterCollectionExtensions Class
System.Web.Http Namespace

Return to top