MessageHeader.CreateHeader Method (String, String, Object, Boolean)
[ 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.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
'Declaration Public Shared Function CreateHeader ( _ name As String, _ ns As String, _ value As Object, _ mustUnderstand As Boolean _ ) As MessageHeader
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.
- mustUnderstand
- Type: System.Boolean
A value that indicates whether the header must be understood.
Show: