HttpNameValueHeaderValue HttpNameValueHeaderValue HttpNameValueHeaderValue HttpNameValueHeaderValue Class

Represents name and value information used in a number of HTTP headers.

Syntax

Declaration

public sealed class HttpNameValueHeaderValuepublic sealed class HttpNameValueHeaderValuePublic NotInheritable Class HttpNameValueHeaderValue

Remarks

The HttpNameValueHeaderValue class provides support for name/value pairs used in various headers

Constructors summary

Initializes a new instance of the HttpNameValueHeaderValue class. with a name.

Initializes a new instance of the HttpNameValueHeaderValue class. with a name and value.

Properties summary

Gets the name used in the HttpNameValueHeaderValue object.

Gets or sets the value associated with a name used in the HttpNameValueHeaderValue object.

Methods summary

Converts a string to an HttpNameValueHeaderValue instance.

Returns a string that represents the current HttpNameValueHeaderValue object.

Determines whether a string is valid HttpNameValueHeaderValue information.

Constructors

  • HttpNameValueHeaderValue(System.String)
    HttpNameValueHeaderValue(System.String)
    HttpNameValueHeaderValue(System.String)
    HttpNameValueHeaderValue(System.String)

    Initializes a new instance of the HttpNameValueHeaderValue class. with a name.

    public HttpNameValueHeaderValue(System.String name)public HttpNameValueHeaderValue(System.String name)Public Function HttpNameValueHeaderValue(name As System.String) As

    Parameters

    • name
      System.String
      System.String
      System.String
      System.String

      The name to be used.

  • HttpNameValueHeaderValue(System.String,System.String)
    HttpNameValueHeaderValue(System.String,System.String)
    HttpNameValueHeaderValue(System.String,System.String)
    HttpNameValueHeaderValue(System.String,System.String)

    Initializes a new instance of the HttpNameValueHeaderValue class. with a name and value.

    public HttpNameValueHeaderValue(System.String name,System.String value)public HttpNameValueHeaderValue(System.String name,System.String value)Public Function HttpNameValueHeaderValue(name As System.String,value As System.String) As

    Parameters

    • name
      System.String
      System.String
      System.String
      System.String

      The name to be used.

    • value
      System.String
      System.String
      System.String
      System.String

      The value to associate with the name.

Properties

  • Name
    Name
    Name
    Name

    Gets the name used in the HttpNameValueHeaderValue object.

    public string Name { get; }public string Name { get; }Public ReadOnly Property Name As string

    Property Value

  • Value
    Value
    Value
    Value

    Gets or sets the value associated with a name used in the HttpNameValueHeaderValue object.

    public string Value { get; set; }public string Value { get; set; }Public ReadWrite Property Value As string

    Property Value

Methods

  • Parse(System.String)
    Parse(System.String)
    Parse(System.String)
    Parse(System.String)

    Converts a string to an HttpNameValueHeaderValue instance.

    public static HttpNameValueHeaderValue Parse(System.String input)public static HttpNameValueHeaderValue Parse(System.String input)Public Static Function Parse(input As System.String) As HttpNameValueHeaderValue

    Parameters

    • input
      System.String
      System.String
      System.String
      System.String

      A string that represents the name and value.

    Returns

  • ToString()
    ToString()
    ToString()
    ToString()

    Returns a string that represents the current HttpNameValueHeaderValue object.

    public string ToString()public string ToString()Public Function ToString() As string

    Returns

    • string
      string
      string
      string

      A string that represents the current object.

  • TryParse(System.String,Windows.Web.Http.Headers.HttpNameValueHeaderValue)
    TryParse(System.String,Windows.Web.Http.Headers.HttpNameValueHeaderValue)
    TryParse(System.String,Windows.Web.Http.Headers.HttpNameValueHeaderValue)
    TryParse(System.String,Windows.Web.Http.Headers.HttpNameValueHeaderValue)

    Determines whether a string is valid HttpNameValueHeaderValue information.

    public static bool TryParse(System.String input,Windows.Web.Http.Headers.HttpNameValueHeaderValue nameValueHeaderValue)public static bool TryParse(System.String input,Windows.Web.Http.Headers.HttpNameValueHeaderValue nameValueHeaderValue)Public Static Function TryParse(input As System.String,nameValueHeaderValue As Windows.Web.Http.Headers.HttpNameValueHeaderValue) As bool

    Parameters

    Returns

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.StaticAttribute
Windows.Foundation.Metadata.ActivatableAttribute
Windows.Foundation.Metadata.ThreadingAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.DualApiPartitionAttribute

Details

Assembly

Windows.Web.Http.Headers.dll