Share via


HttpWebRequestMessage.GetHeader Method

Returns the value of the header with the given name.

Namespace:  System.Data.Services.Client
Assembly:  Microsoft.Data.Services.Client (in Microsoft.Data.Services.Client.dll)

Syntax

'Declaration
Public Overrides Function GetHeader ( _
    headerName As String _
) As String
'Usage
Dim instance As HttpWebRequestMessage 
Dim headerName As String 
Dim returnValue As String 

returnValue = instance.GetHeader(headerName)
public override string GetHeader(
    string headerName
)
public:
virtual String^ GetHeader(
    String^ headerName
) override
abstract GetHeader : 
        headerName:string -> string  
override GetHeader : 
        headerName:string -> string
public override function GetHeader(
    headerName : String
) : String

Parameters

Return Value

Type: System.String
Returns the value of the header with the given name.

Implements

IODataRequestMessage.GetHeader(String)

See Also

Reference

HttpWebRequestMessage Class

System.Data.Services.Client Namespace