HttpHeaders.TryAddWithoutValidation 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.
Returns a value that indicates whether a new header and its values were added to the HttpHeaders collection without validating the provided information.
Overloads
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. |
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. |
TryAddWithoutValidation(String, IEnumerable<String>)
- Source:
- HttpHeaders.cs
- Source:
- HttpHeaders.cs
- Source:
- HttpHeaders.cs
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(System::String ^ name, System::Collections::Generic::IEnumerable<System::String ^> ^ values);
public bool TryAddWithoutValidation (string name, System.Collections.Generic.IEnumerable<string> values);
public bool TryAddWithoutValidation (string name, System.Collections.Generic.IEnumerable<string?> values);
member this.TryAddWithoutValidation : string * seq<string> -> bool
Public Function TryAddWithoutValidation (name As String, values As IEnumerable(Of String)) As Boolean
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
.
Applies to
TryAddWithoutValidation(String, String)
- Source:
- HttpHeaders.cs
- Source:
- HttpHeaders.cs
- Source:
- HttpHeaders.cs
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(System::String ^ name, System::String ^ value);
public bool TryAddWithoutValidation (string name, string value);
public bool TryAddWithoutValidation (string name, string? value);
member this.TryAddWithoutValidation : string * string -> bool
Public Function TryAddWithoutValidation (name As String, value As String) As Boolean
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
.