MediaTypeHeaderValueComparer 类

定义

的实现,可以基于媒体类型标头字段的质量值来比较 (,即 IComparer<T> q-values) 。

public ref class MediaTypeHeaderValueComparer : System::Collections::Generic::IComparer<Microsoft::Net::Http::Headers::MediaTypeHeaderValue ^>
public class MediaTypeHeaderValueComparer : System.Collections.Generic.IComparer<Microsoft.Net.Http.Headers.MediaTypeHeaderValue>
type MediaTypeHeaderValueComparer = class
    interface IComparer<MediaTypeHeaderValue>
Public Class MediaTypeHeaderValueComparer
Implements IComparer(Of MediaTypeHeaderValue)
继承
MediaTypeHeaderValueComparer
实现

属性

QualityComparer

获取 MediaTypeHeaderValueComparer 实例。

方法

Compare(MediaTypeHeaderValue, MediaTypeHeaderValue)

Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.

适用于