Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- collection
Type: System.Net.Http.Formatting.MediaTypeFormatterCollection
The 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 nulla null reference (Nothing in Visual Basic) , but it can contain elements that are nulla null reference (Nothing in Visual Basic).
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).