DefaultContentNegotiator.ComputeFormatterMatches 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
protected virtual System.Collections.ObjectModel.Collection<System.Net.Http.Formatting.MediaTypeFormatterMatch> ComputeFormatterMatches (Type type, System.Net.Http.HttpRequestMessage request, System.Collections.Generic.IEnumerable<System.Net.Http.Formatting.MediaTypeFormatter> formatters);
abstract member ComputeFormatterMatches : Type * System.Net.Http.HttpRequestMessage * seq<System.Net.Http.Formatting.MediaTypeFormatter> -> System.Collections.ObjectModel.Collection<System.Net.Http.Formatting.MediaTypeFormatterMatch>
override this.ComputeFormatterMatches : Type * System.Net.Http.HttpRequestMessage * seq<System.Net.Http.Formatting.MediaTypeFormatter> -> System.Collections.ObjectModel.Collection<System.Net.Http.Formatting.MediaTypeFormatterMatch>
Protected Overridable Function ComputeFormatterMatches (type As Type, request As HttpRequestMessage, formatters As IEnumerable(Of MediaTypeFormatter)) As Collection(Of MediaTypeFormatterMatch)
参数
- type
- Type
- request
- HttpRequestMessage
- formatters
- IEnumerable<System.Net.Http.Formatting.MediaTypeFormatter>