MediaTypeCollection Class

Definition

A collection of media types.

public ref class MediaTypeCollection : System::Collections::ObjectModel::Collection<System::String ^>
public class MediaTypeCollection : System.Collections.ObjectModel.Collection<string>
type MediaTypeCollection = class
    inherit Collection<string>
Public Class MediaTypeCollection
Inherits Collection(Of String)
Inheritance
MediaTypeCollection

Constructors

MediaTypeCollection()

Initializes a new instance of MediaTypeCollection.

Methods

Add(MediaTypeHeaderValue)

Adds an object to the end of the MediaTypeCollection.

Insert(Int32, MediaTypeHeaderValue)

Inserts an element into the MediaTypeCollection at the specified index.

Remove(MediaTypeHeaderValue)

Removes the first occurrence of a specific media type from the MediaTypeCollection.

Applies to