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

Definition

Returns header values if the header is stored in the collection.

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
System.String

The header name.

values
System.Collections.Generic.IEnumerable<System.String>

The reference to populate with values.

Returns

System.Boolean

true if the specified header is stored in the collection, otherwise false.

Applies to