NameValueHeaderValue Class
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.
Represents a name/value pair used in various headers as defined in RFC 2616.
public ref class NameValueHeaderValue
public class NameValueHeaderValue
type NameValueHeaderValue = class
Public Class NameValueHeaderValue
- Inheritance
-
NameValueHeaderValue
Constructors
NameValueHeaderValue(String, String) | |
NameValueHeaderValue(String) | |
NameValueHeaderValue(StringSegment, StringSegment) |
Initializes a new instance of NameValueHeaderValue. |
NameValueHeaderValue(StringSegment) |
Initializes a new instance of NameValueHeaderValue. |
Properties
IsReadOnly |
Gets a value that determines if this header is read only. |
Name |
Gets the header name. |
Value |
Gets or sets the header value. |
Methods
Copy() |
Provides a copy of this object without the cost of re-validating the values. |
CopyAsReadOnly() |
Provides a copy of this instance while making it immutable. |
Equals(Object) | Determines whether the specified object is equal to the current object. |
Find(IList<NameValueHeaderValue>, String) | |
Find(IList<NameValueHeaderValue>, StringSegment) |
Finds a NameValueHeaderValue with the specified |
GetHashCode() | Serves as the default hash function. |
GetUnescapedValue() |
If the value is a quoted-string as defined by the RFC specification, removes quotes and unescapes backslashes and quotes. |
Parse(String) | |
Parse(StringSegment) |
Parses |
ParseList(IList<String>) |
Parses a sequence of inputs as a sequence of NameValueHeaderValue values. |
ParseStrictList(IList<String>) |
Parses a sequence of inputs as a sequence of NameValueHeaderValue values using string parsing rules. |
SetAndEscapeValue(StringSegment) |
Sets Value after it has been quoted as defined by the RFC specification. |
ToString() | Returns a string that represents the current object. |
TryParse(String, NameValueHeaderValue) | |
TryParse(StringSegment, NameValueHeaderValue) |
Attempts to parse the specified |
TryParseList(IList<String>, IList<NameValueHeaderValue>) |
Attempts to parse the sequence of values as a sequence of NameValueHeaderValue. |
TryParseStrictList(IList<String>, IList<NameValueHeaderValue>) |
Attempts to parse the sequence of values as a sequence of NameValueHeaderValue using string parsing rules. |