ResponseHeaders.GetList<T>(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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>)
.