HttpHeaders.TryGetValues(String, IEnumerable<String>) Method

Definition

Return if a specified header and specified values are stored in the HttpHeaders collection.

public:
 bool TryGetValues(System::String ^ name, [Runtime::InteropServices::Out] System::Collections::Generic::IEnumerable<System::String ^> ^ % values);
public bool TryGetValues (string name, out System.Collections.Generic.IEnumerable<string> values);
public bool TryGetValues (string name, out System.Collections.Generic.IEnumerable<string>? values);
member this.TryGetValues : string * seq -> bool
Public Function TryGetValues (name As String, ByRef values As IEnumerable(Of String)) As Boolean

Parameters

name
String

The specified header.

values
IEnumerable<String>

The specified header values.

Returns

true if the specified header name and values are stored in the collection; otherwise false.

Applies to