DefaultContentNegotiator.MatchAcceptHeader 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
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
参数
- sortedAcceptValues
- IEnumerable<MediaTypeWithQualityHeaderValue>
- formatter
- System.Net.Http.Formatting.MediaTypeFormatter