Sdílet prostřednictvím


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

The header name.

values
IEnumerable<String>

The reference to populate with values.

Returns

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

Applies to