MessageHeader Class

 

Represents the content of a SOAP header.

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

System.Object
  System.ServiceModel.Channels.MessageHeaderInfo
    System.ServiceModel.Channels.MessageHeader

public abstract class MessageHeader : MessageHeaderInfo

NameDescription
System_CAPS_protmethodMessageHeader()

Initializes a new instance of the MessageHeader class.

NameDescription
System_CAPS_pubpropertyActor

Gets or sets the targeted recipient of the message header.(Overrides MessageHeaderInfo.Actor.)

System_CAPS_pubpropertyIsReferenceParameter

Gets a value that specifies whether this message header contains reference parameters of an endpoint reference.(Overrides MessageHeaderInfo.IsReferenceParameter.)

System_CAPS_pubpropertyMustUnderstand

Gets or sets a value that indicates whether the header must be understood, according to SOAP 1.1/1.2 specification. (Overrides MessageHeaderInfo.MustUnderstand.)

System_CAPS_pubpropertyName

Gets the name of the message header.(Inherited from MessageHeaderInfo.)

System_CAPS_pubpropertyNamespace

Gets the namespace of the message header.(Inherited from MessageHeaderInfo.)

System_CAPS_pubpropertyRelay

Gets a value that indicates whether the header should be relayed.(Overrides MessageHeaderInfo.Relay.)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticCreateHeader(String, String, Object)

Creates a new message header with the specified data.

System_CAPS_pubmethodSystem_CAPS_staticCreateHeader(String, String, Object, Boolean)

Creates a new message header with the specified data.

System_CAPS_pubmethodSystem_CAPS_staticCreateHeader(String, String, Object, Boolean, String)

Creates a new message header with the specified data.

System_CAPS_pubmethodSystem_CAPS_staticCreateHeader(String, String, Object, Boolean, String, Boolean)

Creates a new message header with the specified data.

System_CAPS_pubmethodSystem_CAPS_staticCreateHeader(String, String, Object, XmlObjectSerializer)

Creates a header from an object to be serialized using the XmlFormatter.

System_CAPS_pubmethodSystem_CAPS_staticCreateHeader(String, String, Object, XmlObjectSerializer, Boolean)

Creates a new message header with the specified data.

System_CAPS_pubmethodSystem_CAPS_staticCreateHeader(String, String, Object, XmlObjectSerializer, Boolean, String)

Creates a new message header with the specified data.

System_CAPS_pubmethodSystem_CAPS_staticCreateHeader(String, String, Object, XmlObjectSerializer, Boolean, String, Boolean)

Creates a new message header with the specified data.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodIsMessageVersionSupported(MessageVersion)

Verifies whether the specified message version is supported.

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_protmethodOnWriteHeaderContents(XmlDictionaryWriter, MessageVersion)

Called when the header content is serialized using the specified XML writer.

System_CAPS_protmethodOnWriteStartHeader(XmlDictionaryWriter, MessageVersion)

Called when the start header is serialized using the specified XML writer.

System_CAPS_pubmethodToString()

Returns the string representation of this message header.(Overrides Object.ToString().)

System_CAPS_pubmethodWriteHeader(XmlDictionaryWriter, MessageVersion)

Serializes the header using the specified XML writer.

System_CAPS_pubmethodWriteHeader(XmlWriter, MessageVersion)

Serializes the header using the specified XML writer.

System_CAPS_protmethodWriteHeaderAttributes(XmlDictionaryWriter, MessageVersion)

Serializes the header attributes using the specified XML writer.

System_CAPS_pubmethodWriteHeaderContents(XmlDictionaryWriter, MessageVersion)

Serializes the header contents using the specified XML writer.

System_CAPS_pubmethodWriteStartHeader(XmlDictionaryWriter, MessageVersion)

Serializes the start header using the specified XML writer.

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.

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

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: