MediaTypeFormatterCollection Class
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 | |
---|---|---|
MediaTypeFormatterCollection() | Initializes a new instance of the MediaTypeFormatterCollection class with default values. | |
MediaTypeFormatterCollection(IEnumerable<MediaTypeFormatter>) | Initializes a new instance of the MediaTypeFormatterCollection class with the given formatters. |
Top
Properties
Name | Description | |
---|---|---|
Count | (Inherited from Collection<MediaTypeFormatter>.) | |
FormUrlEncodedFormatter | Gets the MediaTypeFormatter to use for application/x-www-form-urlencoded data. | |
Item | (Inherited from Collection<MediaTypeFormatter>.) | |
Items | (Inherited from Collection<MediaTypeFormatter>.) | |
JsonFormatter | Gets the MediaTypeFormatter to use for JSON. | |
XmlFormatter | Gets the MediaTypeFormatter to use for XML. |
Top
Methods
Name | Description | |
---|---|---|
Add | (Inherited from Collection<MediaTypeFormatter>.) | |
Clear | (Inherited from Collection<MediaTypeFormatter>.) | |
ClearItems | (Inherited from Collection<MediaTypeFormatter>.) | |
Contains | (Inherited from Collection<MediaTypeFormatter>.) | |
CopyTo | (Inherited from Collection<MediaTypeFormatter>.) | |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
FindReader | Searches a collection for a formatter that can read the .NET type in the given mediaType. | |
FindWriter | Searches a collection for a formatter that can write the .NET type in the given mediaType. | |
GetEnumerator | (Inherited from Collection<MediaTypeFormatter>.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
IndexOf | (Inherited from Collection<MediaTypeFormatter>.) | |
Insert | (Inherited from Collection<MediaTypeFormatter>.) | |
InsertItem | (Inherited from Collection<MediaTypeFormatter>.) | |
IsTypeExcludedFromValidation | Determines whether the type is one of those loosely defined types that should be excluded from validation. | |
MemberwiseClone | (Inherited from Object.) | |
Remove | (Inherited from Collection<MediaTypeFormatter>.) | |
RemoveAt | (Inherited from Collection<MediaTypeFormatter>.) | |
RemoveItem | (Inherited from Collection<MediaTypeFormatter>.) | |
SetItem | (Inherited from Collection<MediaTypeFormatter>.) | |
ToString | (Inherited from Object.) |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
IList.Add | (Inherited from Collection<MediaTypeFormatter>.) | |
IList.Contains | (Inherited from Collection<MediaTypeFormatter>.) | |
ICollection.CopyTo | (Inherited from Collection<MediaTypeFormatter>.) | |
IEnumerable.GetEnumerator | (Inherited from Collection<MediaTypeFormatter>.) | |
IList.IndexOf | (Inherited from Collection<MediaTypeFormatter>.) | |
IList.Insert | (Inherited from Collection<MediaTypeFormatter>.) | |
IList.IsFixedSize | (Inherited from Collection<MediaTypeFormatter>.) | |
ICollection<T>.IsReadOnly | (Inherited from Collection<MediaTypeFormatter>.) | |
IList.IsReadOnly | (Inherited from Collection<MediaTypeFormatter>.) | |
ICollection.IsSynchronized | (Inherited from Collection<MediaTypeFormatter>.) | |
IList.Item | (Inherited from Collection<MediaTypeFormatter>.) | |
IList.Remove | (Inherited from Collection<MediaTypeFormatter>.) | |
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.