DefaultContentNegotiator.MatchAcceptHeader Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
protected virtual System.Net.Http.Formatting.MediaTypeFormatterMatch MatchAcceptHeader (System.Collections.Generic.IEnumerable<System.Net.Http.Headers.MediaTypeWithQualityHeaderValue> sortedAcceptValues, System.Net.Http.Formatting.MediaTypeFormatter formatter);
abstract member MatchAcceptHeader : seq<System.Net.Http.Headers.MediaTypeWithQualityHeaderValue> * System.Net.Http.Formatting.MediaTypeFormatter -> System.Net.Http.Formatting.MediaTypeFormatterMatch
override this.MatchAcceptHeader : seq<System.Net.Http.Headers.MediaTypeWithQualityHeaderValue> * System.Net.Http.Formatting.MediaTypeFormatter -> System.Net.Http.Formatting.MediaTypeFormatterMatch
Protected Overridable Function MatchAcceptHeader (sortedAcceptValues As IEnumerable(Of MediaTypeWithQualityHeaderValue), formatter As MediaTypeFormatter) As MediaTypeFormatterMatch
Parameters
- sortedAcceptValues
- IEnumerable<MediaTypeWithQualityHeaderValue>
- formatter
- System.Net.Http.Formatting.MediaTypeFormatter