共用方式為


ResponseHeaders.GetList<T>(String) 方法

定義

使用 取得標頭 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)

類型參數

T

標頭的類型。 指定的類型必須具有靜態 TryParseList 方法。

參數

name
String

要擷取的標頭名稱。

傳回

IList<T>

標頭的值清單。

備註

T 必須包含具有簽章 public static bool TryParseList(IList<string>, out IList<T>) 的 TryParseList 方法。

適用於