返回 HTTP 标头的值。
命名空间: Microsoft.Data.OData
程序集: Microsoft.Data.OData(在 Microsoft.Data.OData.dll 中)
语法
声明
Function GetHeader ( _
headerName As String _
) As String
用法
Dim instance As IODataResponseMessage
Dim headerName As String
Dim returnValue As String
returnValue = instance.GetHeader(headerName)
string GetHeader(
string headerName
)
String^ GetHeader(
String^ headerName
)
abstract GetHeader :
headerName:string -> string
function GetHeader(
headerName : String
) : String
参数
- headerName
类型:System.String
要获取的标头名称。
返回值
类型:System.String
如果消息中没有出现此种标头,则为 HTTP 标头值或 null 值。