MediaTypeWithQualityHeaderValue Class
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.
Represents a media type with an additional quality factor used in a Content-Type header.
public ref class MediaTypeWithQualityHeaderValue sealed : System::Net::Http::Headers::MediaTypeHeaderValue
public ref class MediaTypeWithQualityHeaderValue sealed : System::Net::Http::Headers::MediaTypeHeaderValue, ICloneable
public sealed class MediaTypeWithQualityHeaderValue : System.Net.Http.Headers.MediaTypeHeaderValue
public sealed class MediaTypeWithQualityHeaderValue : System.Net.Http.Headers.MediaTypeHeaderValue, ICloneable
type MediaTypeWithQualityHeaderValue = class
inherit MediaTypeHeaderValue
type MediaTypeWithQualityHeaderValue = class
inherit MediaTypeHeaderValue
interface ICloneable
Public NotInheritable Class MediaTypeWithQualityHeaderValue
Inherits MediaTypeHeaderValue
Public NotInheritable Class MediaTypeWithQualityHeaderValue
Inherits MediaTypeHeaderValue
Implements ICloneable
- Inheritance
- Implements
The MediaTypeWithQualityHeaderValue class provides support for the media type and quality in a Content-Type header as defined in RFC 2616 by the IETF.
Quality factors allow the user agent to indicate the relative degree of preference for the media type in a Content-Type header. Quality uses a scale from 0 to 1. The default value is q=1.
This type derives from MediaTypeHeaderValue.
Media |
Initializes a new instance of the MediaTypeWithQualityHeaderValue class. |
Media |
Initializes a new instance of the MediaTypeWithQualityHeaderValue class. |
Char |
Gets or sets the character set. (Inherited from MediaTypeHeaderValue) |
Media |
Gets or sets the media-type header value. (Inherited from MediaTypeHeaderValue) |
Parameters |
Gets or sets the media-type header value parameters. (Inherited from MediaTypeHeaderValue) |
Quality |
Gets or sets the quality value for the MediaTypeWithQualityHeaderValue. |
Equals(Object) |
Determines whether the specified Object is equal to the current MediaTypeHeaderValue object. (Inherited from MediaTypeHeaderValue) |
Get |
Serves as a hash function for an MediaTypeHeaderValue object. (Inherited from MediaTypeHeaderValue) |
Get |
Gets the Type of the current instance. (Inherited from Object) |
Memberwise |
Creates a shallow copy of the current Object. (Inherited from Object) |
Parse(String) |
Converts a string to an MediaTypeWithQualityHeaderValue instance. |
To |
Returns a string that represents the current MediaTypeHeaderValue object. (Inherited from MediaTypeHeaderValue) |
Try |
Determines whether a string is valid MediaTypeWithQualityHeaderValue information. |
ICloneable. |
Creates a new object that is a copy of the current MediaTypeWithQualityHeaderValue instance. |
Производ | Верзије |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 1.1, 1.2, 1.3, 1.4, 1.6, 2.0, 2.1 |
UWP | 10.0 |
.NET повратне информације
.NET је пројекат отвореног кода. Изаберите везу да бисте обезбедили повратне информације: