Share via


HttpContentHeaderCollection.TryAppendWithoutValidation(String, String) Method

Definition

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

public:
 virtual bool TryAppendWithoutValidation(Platform::String ^ name, Platform::String ^ value) = TryAppendWithoutValidation;
bool TryAppendWithoutValidation(winrt::hstring const& name, winrt::hstring const& value);
public bool TryAppendWithoutValidation(string name, string value);
function tryAppendWithoutValidation(name, value)
Public Function TryAppendWithoutValidation (name As String, value As String) As Boolean

Parameters

name
String

Platform::String

winrt::hstring

The name of the item to append.

value
String

Platform::String

winrt::hstring

The value of the item to append.

Returns

Boolean

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 HTTP content 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.

Applies to