The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
MessageHeader::CreateHeader Method (String^, String^, Object^, XmlObjectSerializer^)
.NET Framework (current version)
Creates a header from an object to be serialized using the XmlFormatter.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
public: static MessageHeader^ CreateHeader( String^ name, String^ ns, Object^ value, XmlObjectSerializer^ serializer )
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 that is used to serialize the header.
Return Value
Type: System.ServiceModel.Channels::MessageHeader^A new MessageHeader object with the specified data.
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: