你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Headers.TryGetValue(String, String) 方法

定义

尝试获取特定标头的值。

public virtual bool TryGetValue (string headerName, out string value);
abstract member TryGetValue : string * string -> bool
override this.TryGetValue : string * string -> bool
Public Overridable Function TryGetValue (headerName As String, ByRef value As String) As Boolean

参数

headerName
String

标头名称。

value
String

标头值。

返回

如果标头集合中存在标头名称,则为 True 或 false。

适用于