OperationContext::OutgoingMessageHeaders Property

 

Gets the outgoing message headers for the active OperationContext.

Namespace:   System.ServiceModel
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public:
property MessageHeaders^ OutgoingMessageHeaders {
	MessageHeaders^ get();
}

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.

No code example is currently available or this language may not be supported.

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
Return to top
Show: