HttpHeaders.TryGetValues(String, IEnumerable<String>) 方法
定义
如果指定的标头和指定的值存储在 HttpHeaders 集合中,则返回。Return if a specified header and specified values are stored in the HttpHeaders collection.
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
指定的标头。The specified header.
- values
- IEnumerable<String>
指定的标头值。The specified header values.
返回
如果指定的标头 name 和 values 存储在集合中,则为 true;否则为 false。true is the specified header name and values are stored in the collection; otherwise false.