HttpHeaders.GetValues(String) 方法

定義

傳回 HttpHeaders 集合中儲存之指定標頭的所有標頭值。Returns all header values for a specified header stored in the HttpHeaders collection.

public:
 System::Collections::Generic::IEnumerable<System::String ^> ^ GetValues(System::String ^ name);
public System.Collections.Generic.IEnumerable<string> GetValues (string name);
member this.GetValues : string -> seq<string>
Public Function GetValues (name As String) As IEnumerable(Of String)

參數

name
String

要傳回值的指定標頭。The specified header to return values for.

傳回

標頭字串的陣列。An array of header strings.

例外狀況

找不到標頭。The header cannot be found.

適用於