MediaTypeFormatterCollection Class

 

Collection class that contains MediaTypeFormatter instances.

Namespace:   System.Net.Http.Formatting
Assembly:  System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)

System::Object
  System.Collections.ObjectModel::Collection<T>
    System.Net.Http.Formatting::MediaTypeFormatterCollection

public ref class MediaTypeFormatterCollection : Collection<MediaTypeFormatter^>

NameDescription
System_CAPS_pubmethodMediaTypeFormatterCollection()

Initializes a new instance of the MediaTypeFormatterCollection class.

System_CAPS_pubmethodMediaTypeFormatterCollection(IEnumerable<MediaTypeFormatter^>^)

Initializes a new instance of the MediaTypeFormatterCollection class.

NameDescription
System_CAPS_pubpropertyCount

(Inherited from Collection<T>.)

System_CAPS_pubpropertyFormUrlEncodedFormatter

Gets the MediaTypeFormatter to use for application/x-www-form-urlencoded data.

System_CAPS_pubpropertyItem[Int32]

(Inherited from Collection<T>.)

System_CAPS_protpropertyItems

(Inherited from Collection<T>.)

System_CAPS_pubpropertyJsonFormatter

Gets the MediaTypeFormatter to use for JSON.

System_CAPS_pubpropertyXmlFormatter

Gets the MediaTypeFormatter to use for XML.

NameDescription
System_CAPS_pubmethodAdd(T)

(Inherited from Collection<T>.)

System_CAPS_pubmethodAddRange(IEnumerable<MediaTypeFormatter^>^)

Adds the elements of the specified collection to the end of the MediaTypeFormatterCollection.

System_CAPS_pubmethodClear()

(Inherited from Collection<T>.)

System_CAPS_protmethodClearItems()

Removes all items in the collection.(Overrides Collection<T>::ClearItems().)

System_CAPS_pubmethodContains(T)

(Inherited from Collection<T>.)

System_CAPS_pubmethodCopyTo(array<T>^, Int32)

(Inherited from Collection<T>.)

System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodFindReader(Type^, MediaTypeHeaderValue^)

Helper to search a collection for a formatter that can read the .NET type in the given mediaType.

System_CAPS_pubmethodFindWriter(Type^, MediaTypeHeaderValue^)

Helper to search a collection for a formatter that can write the .NET type in the given mediaType.

System_CAPS_pubmethodGetEnumerator()

(Inherited from Collection<T>.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodIndexOf(T)

(Inherited from Collection<T>.)

System_CAPS_pubmethodInsert(Int32, T)

(Inherited from Collection<T>.)

System_CAPS_protmethodInsertItem(Int32, MediaTypeFormatter^)

Inserts the specified item at the specified index in the collection.(Overrides Collection<T>::InsertItem(Int32, T).)

System_CAPS_pubmethodInsertRange(Int32, IEnumerable<MediaTypeFormatter^>^)

Inserts the elements of a collection into the MediaTypeFormatterCollection at the specified index.

System_CAPS_pubmethodSystem_CAPS_staticIsTypeExcludedFromValidation(Type^)

Returns true if the type is one of those loosely defined types that should be excluded from validation.

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodRemove(T)

(Inherited from Collection<T>.)

System_CAPS_pubmethodRemoveAt(Int32)

(Inherited from Collection<T>.)

System_CAPS_protmethodRemoveItem(Int32)

Removes the item at the specified index.(Overrides Collection<T>::RemoveItem(Int32).)

System_CAPS_protmethodSetItem(Int32, MediaTypeFormatter^)

Assigns the item at the specified index in the collection.(Overrides Collection<T>::SetItem(Int32, T).)

System_CAPS_pubmethodToString()

(Inherited from Object.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: