HttpRequestHeaderCollection.TryAppendWithoutValidation(String, String) HttpRequestHeaderCollection.TryAppendWithoutValidation(String, String) HttpRequestHeaderCollection.TryAppendWithoutValidation(String, String) HttpRequestHeaderCollection.TryAppendWithoutValidation(String, String) HttpRequestHeaderCollection.TryAppendWithoutValidation(String, String) Method

Definition

Try to append the specified item to the HttpRequestHeaderCollection without validation.

public : Platform::Boolean TryAppendWithoutValidation(Platform::String name, Platform::String value)
bool TryAppendWithoutValidation(winrt::hstring name, winrt::hstring value) const;
public bool TryAppendWithoutValidation(String name, String value)
Public Function TryAppendWithoutValidation(name As String, value As String) As bool
var bool = httpRequestHeaderCollection.tryAppendWithoutValidation(name, value);

Parameters

name
String String String

The name of the item to append.

value
String String String

The value of the item to append.

Returns

bool bool bool

true if the item was appended; otherwise false.

Remarks

The TryAppendWithoutValidation method is available when you need to work with an HTTP header on an HTTP request that doesn't have a strongly-typed class for the HTTP header. If there is a strongly-typed implementation of the HTTP header, then the methods and properties on the strongly-typed class should be used instead of the TryAppendWithoutValidation method.