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 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 string GetHeader(
    string headerName
)
public:
virtual String^ GetHeader(
    String^ headerName
) sealed
abstract GetHeader : 
        headerName:string -> string  
override GetHeader : 
        headerName:string -> string
public final 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