Share via


RequestHeaders.GetList<T>(String) Method

Definition

Gets the values of header with name.

public:
generic <typename T>
 System::Collections::Generic::IList<T> ^ GetList(System::String ^ name);
public System.Collections.Generic.IList<T> GetList<T> (string name);
member this.GetList : string -> System.Collections.Generic.IList<'T>
Public Function GetList(Of T) (name As String) As IList(Of T)

Type Parameters

T

The type of the header. The given type must have a static TryParseList method.

Parameters

name
String

The name of the header to retrieve.

Returns

IList<T>

List of values of the header.

Remarks

T must contain a TryParseList method with the signature public static bool TryParseList(IList<string>, out IList<T>).

Applies to