HttpHeaders.TryGetValues(String, IEnumerable<String>) 方法

定義

如果指定的標頭和指定值儲存於 HttpHeaders 集合中,則會傳回。

public:
 bool TryGetValues(System::String ^ name, [Runtime::InteropServices::Out] System::Collections::Generic::IEnumerable<System::String ^> ^ % values);
public bool TryGetValues (string name, out System.Collections.Generic.IEnumerable<string> values);
public bool TryGetValues (string name, out System.Collections.Generic.IEnumerable<string>? values);
member this.TryGetValues : string * seq -> bool
Public Function TryGetValues (name As String, ByRef values As IEnumerable(Of String)) As Boolean

參數

name
String

指定的標頭。

values
IEnumerable<String>

指定的標頭值。

傳回

true 如果指定的標頭 namevalues 儲存在集合中,則為 ,否則 false 為 。

適用於