HttpWebRequestMessage.SetHeader Method

Sets 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 Sub SetHeader ( _
    headerName As String, _
    headerValue As String _
)
'Usage
Dim instance As HttpWebRequestMessage 
Dim headerName As String 
Dim headerValue As String

instance.SetHeader(headerName, headerValue)
public void SetHeader(
    string headerName,
    string headerValue
)
public:
virtual void SetHeader(
    String^ headerName, 
    String^ headerValue
) sealed
abstract SetHeader : 
        headerName:string * 
        headerValue:string -> unit  
override SetHeader : 
        headerName:string * 
        headerValue:string -> unit
public final function SetHeader(
    headerName : String, 
    headerValue : String
)

Parameters

Implements

IODataRequestMessage.SetHeader(String, String)

See Also

Reference

HttpWebRequestMessage Class

System.Data.Services.Client Namespace