HttpResponseHeaderCollection.TryAppendWithoutValidation Method
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.
Try to append the specified item to the HttpResponseHeaderCollection 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
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 response 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.