HttpNameValueHeaderValue 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 name and value information used in a number of HTTP headers.
public ref class HttpNameValueHeaderValue sealed : IStringable
/// [Windows.Foundation.Metadata.Activatable(Windows.Web.Http.Headers.IHttpNameValueHeaderValueFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class HttpNameValueHeaderValue final : IStringable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Web.Http.Headers.IHttpNameValueHeaderValueFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class HttpNameValueHeaderValue final : IStringable
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Web.Http.Headers.IHttpNameValueHeaderValueFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class HttpNameValueHeaderValue : IStringable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Web.Http.Headers.IHttpNameValueHeaderValueFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class HttpNameValueHeaderValue : IStringable
function HttpNameValueHeaderValue(name, value)
Public NotInheritable Class HttpNameValueHeaderValue
Implements IStringable
- Inheritance
- Attributes
- Implements
Windows requirements
Device family |
Windows 10 (introduced in 10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
Remarks
The HttpNameValueHeaderValue class provides support for name/value pairs used in various headers
Constructors
HttpNameValueHeaderValue(String, String) |
Initializes a new instance of the HttpNameValueHeaderValue class. with a name and value. |
HttpNameValueHeaderValue(String) |
Initializes a new instance of the HttpNameValueHeaderValue class. with a name. |
Properties
Name |
Gets the name used in the HttpNameValueHeaderValue object. |
Value |
Gets or sets the value associated with a name used in the HttpNameValueHeaderValue object. |
Methods
Parse(String) |
Converts a string to an HttpNameValueHeaderValue instance. |
ToString() |
Returns a string that represents the current HttpNameValueHeaderValue object. |
TryParse(String, HttpNameValueHeaderValue) |
Determines whether a string is valid HttpNameValueHeaderValue information. |