Export (0) Print
Expand All
0 out of 2 rated this helpful - Rate this topic

MessageHeader Class

Represents the content of a SOAP header.

Namespace:  System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)
public abstract class MessageHeader : MessageHeaderInfo

The MessageHeader type exposes the following members.

  NameDescription
Protected methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsMessageHeaderInitializes a new instance of the MessageHeader class.
Top
  NameDescription
Public propertySupported by Portable Class LibrarySupported in .NET for Windows Store appsActorGets or sets the targeted recipient of the message header. (Overrides MessageHeaderInfo.Actor.)
Public propertySupported by Portable Class LibrarySupported in .NET for Windows Store appsIsReferenceParameterGets a value that specifies whether this message header contains reference parameters of an endpoint reference. (Overrides MessageHeaderInfo.IsReferenceParameter.)
Public propertySupported by Portable Class LibrarySupported in .NET for Windows Store appsMustUnderstandGets or sets a value that indicates whether the header must be understood, according to SOAP 1.1/1.2 specification. (Overrides MessageHeaderInfo.MustUnderstand.)
Public propertySupported by Portable Class LibrarySupported in .NET for Windows Store appsNameGets the name of the message header. (Inherited from MessageHeaderInfo.)
Public propertySupported by Portable Class LibrarySupported in .NET for Windows Store appsNamespaceGets the namespace of the message header. (Inherited from MessageHeaderInfo.)
Public propertySupported by Portable Class LibrarySupported in .NET for Windows Store appsRelayGets a value that indicates whether the header should be relayed. (Overrides MessageHeaderInfo.Relay.)
Top
  NameDescription
Public methodStatic memberSupported by Portable Class LibrarySupported in .NET for Windows Store appsCreateHeader(String, String, Object)Creates a new message header with the specified data.
Public methodStatic memberSupported by Portable Class LibrarySupported in .NET for Windows Store appsCreateHeader(String, String, Object, Boolean)Creates a new message header with the specified data.
Public methodStatic memberSupported by Portable Class LibrarySupported in .NET for Windows Store appsCreateHeader(String, String, Object, XmlObjectSerializer)Creates a header from an object to be serialized using the XmlFormatter.
Public methodStatic memberSupported by Portable Class LibrarySupported in .NET for Windows Store appsCreateHeader(String, String, Object, Boolean, String)Creates a new message header with the specified data.
Public methodStatic memberSupported by Portable Class LibrarySupported in .NET for Windows Store appsCreateHeader(String, String, Object, XmlObjectSerializer, Boolean)Creates a new message header with the specified data.
Public methodStatic memberSupported by Portable Class LibrarySupported in .NET for Windows Store appsCreateHeader(String, String, Object, Boolean, String, Boolean)Creates a new message header with the specified data.
Public methodStatic memberSupported by Portable Class LibrarySupported in .NET for Windows Store appsCreateHeader(String, String, Object, XmlObjectSerializer, Boolean, String)Creates a new message header with the specified data.
Public methodStatic memberSupported by Portable Class LibrarySupported in .NET for Windows Store appsCreateHeader(String, String, Object, XmlObjectSerializer, Boolean, String, Boolean)Creates a new message header with the specified data.
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsIsMessageVersionSupportedVerifies whether the specified message version is supported.
Protected methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Protected methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsOnWriteHeaderContentsCalled when the header content is serialized using the specified XML writer.
Protected methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsOnWriteStartHeaderCalled when the start header is serialized using the specified XML writer.
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsToStringReturns the string representation of this message header. (Overrides Object.ToString().)
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsWriteHeader(XmlDictionaryWriter, MessageVersion)Serializes the header using the specified XML writer.
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsWriteHeader(XmlWriter, MessageVersion)Serializes the header using the specified XML writer.
Protected methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsWriteHeaderAttributesSerializes the header attributes using the specified XML writer.
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsWriteHeaderContentsSerializes the header contents using the specified XML writer.
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsWriteStartHeaderSerializes the start header using the specified XML writer.
Top

A message header contains optional metadata that describe a message encapsulated by the Message class.

A Message can have zero or more headers that are used as an extension mechanism to pass information in messages that are application-specific. You can use Headers to add message headers to a message by calling the Add method.

Windows Communication Foundation (WCF) provides a number of predefined message headers, as shown in the following table.

Header Name

Description

To

Contains the role that the message is targeting.

Action

Provides a description of how the message should be processed.

FaultTo

Contains the address of the node to which faults should be sent.

From

Contains the address of the node that sent the message.

Request

Indicates whether the message is a request.

MessageID

Contains the unique ID of the message.

RelatesTo

Contains the IDs of messages that are related to this message.

ReplyTo

Contains the address of the node to which a reply should be sent for a request.

.NET Framework

Supported in: 4.5.1, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Portable Class Library

Supported in: Portable Class Library

.NET for Windows Store apps

Supported in: Windows 8

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone 8, Silverlight 8.1

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.