IODataResponseMessage.SetHeader Method
Sets the value of an HTTP header.
Namespace: Microsoft.Data.OData
Assembly: Microsoft.Data.OData (in Microsoft.Data.OData.dll)
Syntax
'Declaration
Sub SetHeader ( _
headerName As String, _
headerValue As String _
)
'Usage
Dim instance As IODataResponseMessage
Dim headerName As String
Dim headerValue As String
instance.SetHeader(headerName, headerValue)
void SetHeader(
string headerName,
string headerValue
)
void SetHeader(
String^ headerName,
String^ headerValue
)
abstract SetHeader :
headerName:string *
headerValue:string -> unit
function SetHeader(
headerName : String,
headerValue : String
)
Parameters
- headerName
Type: System.String
The name of the header to set.
- headerValue
Type: System.String
The value of the HTTP header or 'null' if the header should be removed.