Represents a collection class that contains MediaTypeFormatter instances.
Inheritance Hierarchy
System.Object
  System.Collections.ObjectModel.Collection<MediaTypeFormatter>
    System.Net.Http.Formatting.MediaTypeFormatterCollection
Namespace:  System.Net.Http.Formatting
Assembly:  System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)
Syntax
'Declaration
Public Class MediaTypeFormatterCollection _
    Inherits Collection(Of MediaTypeFormatter)
'Usage
Dim instance As MediaTypeFormatterCollection
public class MediaTypeFormatterCollection : Collection<MediaTypeFormatter>
public ref class MediaTypeFormatterCollection : public Collection<MediaTypeFormatter^>
type MediaTypeFormatterCollection =  
    class
        inherit Collection<MediaTypeFormatter>
    end
public class MediaTypeFormatterCollection extends Collection<MediaTypeFormatter>
The MediaTypeFormatterCollection type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| .jpeg) | MediaTypeFormatterCollection() | Initializes a new instance of the MediaTypeFormatterCollection class with default values. | 
| .jpeg) | MediaTypeFormatterCollection(IEnumerable<MediaTypeFormatter>) | Initializes a new instance of the MediaTypeFormatterCollection class with the given formatters. | 
Top
Properties
| Name | Description | |
|---|---|---|
| .jpeg) | Count | (Inherited from Collection<MediaTypeFormatter>.) | 
| .jpeg) | FormUrlEncodedFormatter | Gets the MediaTypeFormatter to use for application/x-www-form-urlencoded data. | 
| .jpeg) | Item | (Inherited from Collection<MediaTypeFormatter>.) | 
| .jpeg) | Items | (Inherited from Collection<MediaTypeFormatter>.) | 
| .jpeg) | JsonFormatter | Gets the MediaTypeFormatter to use for JSON. | 
| .jpeg) | XmlFormatter | Gets the MediaTypeFormatter to use for XML. | 
Top
Methods
| Name | Description | |
|---|---|---|
| .jpeg) | Add | (Inherited from Collection<MediaTypeFormatter>.) | 
| .jpeg) | Clear | (Inherited from Collection<MediaTypeFormatter>.) | 
| .jpeg) | ClearItems | (Inherited from Collection<MediaTypeFormatter>.) | 
| .jpeg) | Contains | (Inherited from Collection<MediaTypeFormatter>.) | 
| .jpeg) | CopyTo | (Inherited from Collection<MediaTypeFormatter>.) | 
| .jpeg) | Equals | (Inherited from Object.) | 
| .jpeg) | Finalize | (Inherited from Object.) | 
| .jpeg) | FindReader | Searches a collection for a formatter that can read the .NET type in the given mediaType. | 
| .jpeg) | FindWriter | Searches a collection for a formatter that can write the .NET type in the given mediaType. | 
| .jpeg) | GetEnumerator | (Inherited from Collection<MediaTypeFormatter>.) | 
| .jpeg) | GetHashCode | (Inherited from Object.) | 
| .jpeg) | GetType | (Inherited from Object.) | 
| .jpeg) | IndexOf | (Inherited from Collection<MediaTypeFormatter>.) | 
| .jpeg) | Insert | (Inherited from Collection<MediaTypeFormatter>.) | 
| .jpeg) | InsertItem | (Inherited from Collection<MediaTypeFormatter>.) | 
| .jpeg) .gif) | IsTypeExcludedFromValidation | Determines whether the type is one of those loosely defined types that should be excluded from validation. | 
| .jpeg) | MemberwiseClone | (Inherited from Object.) | 
| .jpeg) | Remove | (Inherited from Collection<MediaTypeFormatter>.) | 
| .jpeg) | RemoveAt | (Inherited from Collection<MediaTypeFormatter>.) | 
| .jpeg) | RemoveItem | (Inherited from Collection<MediaTypeFormatter>.) | 
| .jpeg) | SetItem | (Inherited from Collection<MediaTypeFormatter>.) | 
| .jpeg) | ToString | (Inherited from Object.) | 
Top
Explicit Interface Implementations
| Name | Description | |
|---|---|---|
| .jpeg) .jpeg) | IList.Add | (Inherited from Collection<MediaTypeFormatter>.) | 
| .jpeg) .jpeg) | IList.Contains | (Inherited from Collection<MediaTypeFormatter>.) | 
| .jpeg) .jpeg) | ICollection.CopyTo | (Inherited from Collection<MediaTypeFormatter>.) | 
| .jpeg) .jpeg) | IEnumerable.GetEnumerator | (Inherited from Collection<MediaTypeFormatter>.) | 
| .jpeg) .jpeg) | IList.IndexOf | (Inherited from Collection<MediaTypeFormatter>.) | 
| .jpeg) .jpeg) | IList.Insert | (Inherited from Collection<MediaTypeFormatter>.) | 
| .jpeg) .gif) | IList.IsFixedSize | (Inherited from Collection<MediaTypeFormatter>.) | 
| .jpeg) .gif) | ICollection<T>.IsReadOnly | (Inherited from Collection<MediaTypeFormatter>.) | 
| .jpeg) .gif) | IList.IsReadOnly | (Inherited from Collection<MediaTypeFormatter>.) | 
| .jpeg) .gif) | ICollection.IsSynchronized | (Inherited from Collection<MediaTypeFormatter>.) | 
| .jpeg) .gif) | IList.Item | (Inherited from Collection<MediaTypeFormatter>.) | 
| .jpeg) .jpeg) | IList.Remove | (Inherited from Collection<MediaTypeFormatter>.) | 
| .jpeg) .gif) | ICollection.SyncRoot | (Inherited from Collection<MediaTypeFormatter>.) | 
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.