Export (0) Print
Expand All

MediaTypeFormatterCollection Class

Represents a collection class that contains MediaTypeFormatter instances.

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)

type MediaTypeFormatterCollection =  
    class
        inherit Collection<MediaTypeFormatter>
    end

The MediaTypeFormatterCollection type exposes the following members.

  NameDescription
Public methodMediaTypeFormatterCollection()Initializes a new instance of the MediaTypeFormatterCollection class with default values.
Public methodMediaTypeFormatterCollection(IEnumerable(MediaTypeFormatter))Initializes a new instance of the MediaTypeFormatterCollection class with the given formatters.
Top

  NameDescription
Public propertyCount (Inherited from Collection(MediaTypeFormatter).)
Public propertyFormUrlEncodedFormatter Gets the MediaTypeFormatter to use for application/x-www-form-urlencoded data.
Public propertyItem (Inherited from Collection(MediaTypeFormatter).)
Protected propertyItems (Inherited from Collection(MediaTypeFormatter).)
Public propertyJsonFormatter Gets the MediaTypeFormatter to use for JSON.
Public propertyXmlFormatter Gets the MediaTypeFormatter to use for XML.
Top

  NameDescription
Public methodAdd (Inherited from Collection(MediaTypeFormatter).)
Public methodClear (Inherited from Collection(MediaTypeFormatter).)
Protected methodClearItems (Inherited from Collection(MediaTypeFormatter).)
Public methodContains (Inherited from Collection(MediaTypeFormatter).)
Public methodCopyTo (Inherited from Collection(MediaTypeFormatter).)
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodFindReader Searches a collection for a formatter that can read the .NET type in the given mediaType.
Public methodFindWriter Searches a collection for a formatter that can write the .NET type in the given mediaType.
Public methodGetEnumerator (Inherited from Collection(MediaTypeFormatter).)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodIndexOf (Inherited from Collection(MediaTypeFormatter).)
Public methodInsert (Inherited from Collection(MediaTypeFormatter).)
Protected methodInsertItem (Inherited from Collection(MediaTypeFormatter).)
Public methodStatic memberIsTypeExcludedFromValidation Determines whether the type is one of those loosely defined types that should be excluded from validation.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodRemove (Inherited from Collection(MediaTypeFormatter).)
Public methodRemoveAt (Inherited from Collection(MediaTypeFormatter).)
Protected methodRemoveItem (Inherited from Collection(MediaTypeFormatter).)
Protected methodSetItem (Inherited from Collection(MediaTypeFormatter).)
Public methodToString (Inherited from Object.)
Top

  NameDescription
Explicit interface implemetationPrivate methodIList.Add (Inherited from Collection(MediaTypeFormatter).)
Explicit interface implemetationPrivate methodIList.Contains (Inherited from Collection(MediaTypeFormatter).)
Explicit interface implemetationPrivate methodICollection.CopyTo (Inherited from Collection(MediaTypeFormatter).)
Explicit interface implemetationPrivate methodIEnumerable.GetEnumerator (Inherited from Collection(MediaTypeFormatter).)
Explicit interface implemetationPrivate methodIList.IndexOf (Inherited from Collection(MediaTypeFormatter).)
Explicit interface implemetationPrivate methodIList.Insert (Inherited from Collection(MediaTypeFormatter).)
Explicit interface implemetationPrivate propertyIList.IsFixedSize (Inherited from Collection(MediaTypeFormatter).)
Explicit interface implemetationPrivate propertyICollection(T).IsReadOnly (Inherited from Collection(MediaTypeFormatter).)
Explicit interface implemetationPrivate propertyIList.IsReadOnly (Inherited from Collection(MediaTypeFormatter).)
Explicit interface implemetationPrivate propertyICollection.IsSynchronized (Inherited from Collection(MediaTypeFormatter).)
Explicit interface implemetationPrivate propertyIList.Item (Inherited from Collection(MediaTypeFormatter).)
Explicit interface implemetationPrivate methodIList.Remove (Inherited from Collection(MediaTypeFormatter).)
Explicit interface implemetationPrivate propertyICollection.SyncRoot (Inherited from Collection(MediaTypeFormatter).)
Top

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