Udostępnij za pośrednictwem


RequestHeaders.GetList<T>(String) Metoda

Definicja

Pobiera wartości nagłówka za pomocą polecenia 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)

Parametry typu

T

Typ nagłówka. Dany typ musi mieć statyczną metodę TryParseList.

Parametry

name
String

Nazwa nagłówka do pobrania.

Zwraca

IList<T>

Lista wartości nagłówka.

Uwagi

T musi zawierać metodę TryParseList z podpisem public static bool TryParseList(IList<string>, out IList<T>).

Dotyczy