-api-id | -api-type |
---|---|
M:Windows.Web.Http.Headers.HttpRequestHeaderCollection.TryAppendWithoutValidation(System.String,System.String) |
winrt method |
Try to append the specified item to the HttpRequestHeaderCollection without validation.
The name of the item to append.
The value of the item to append.
true if the item was appended; otherwise false.
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.