HttpHeaders.TryGetValues(String, IEnumerable<String>) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
如果集合中儲存 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);
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 若指定的標頭 name 和 values 儲存在集合中;否則 false。