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
collection
Type: System.Net.Http.Formatting.MediaTypeFormatterCollectionThe collection to which to add the items.
items
Type: System.Collections.Generic.IEnumerable<MediaTypeFormatter>The items that should be added to the end of 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