Http​Headers.​Try​Add​Without​Validation Method

Definition

Overloads

Try​Add​Without​Validation(​String, ​IEnumerable<​String>)

Returns a value that indicates whether the specified header and its values were added to the HttpHeaders collection without validating the provided information.

Try​Add​Without​Validation(​String, ​String)

Returns a value that indicates whether the specified header and its value were added to the HttpHeaders collection without validating the provided information.

TryAddWithoutValidation(String, IEnumerable<String>)

Returns a value that indicates whether the specified header and its values were added to the HttpHeaders collection without validating the provided information.

public bool TryAddWithoutValidation (string name, System.Collections.Generic.IEnumerable<string> values);
Parameters
name
String

The header to add to the collection.

values
IEnumerable<String>

The values of the header.

Returns

true if the specified header name and values could be added to the collection; otherwise false.

TryAddWithoutValidation(String, String)

Returns a value that indicates whether the specified header and its value were added to the HttpHeaders collection without validating the provided information.

public bool TryAddWithoutValidation (string name, string value);
Parameters
name
String

The header to add to the collection.

value
String

The content of the header.

Returns

true if the specified header name and value could be added to the collection; otherwise false.