CreateHeader Method (String, String, Object, XmlObjectSerializer, Boolean, String)

MessageHeader.CreateHeader Method (String, String, Object, XmlObjectSerializer, Boolean, String)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Creates a new message header with the specified data.

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

public static MessageHeader CreateHeader(
	string name,
	string ns,
	Object value,
	XmlObjectSerializer serializer,
	bool mustUnderstand,
	string actor
)

Parameters

name
Type: System.String
The local name of the header XML element.
ns
Type: System.String
The namespace URI of the header XML element.
value
Type: System.Object
The content of the header to be created.
serializer
Type: System.Runtime.Serialization.XmlObjectSerializer
An XmlObjectSerializer.
mustUnderstand
Type: System.Boolean
A value that indicates whether the header must be understood.
actor
Type: System.String
The targeted recipient of the message header.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft