OperationContext::OutgoingMessageHeaders Property
.NET Framework (current version)
Gets the outgoing message headers for the active OperationContext.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
Property Value
Type: System.ServiceModel.Channels::MessageHeaders^A MessageHeaders object that contains outbound message headers for the active OperationContext.
Use this property to add reply headers that are sent by a service operation or request headers that are sent by a WCF client object.
The following example shows how to use the OperationContextScope to create a new context in a client application in order to add a custom header to the outgoing message.
Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Show: