MessageHeader.CreateHeader Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new message header.
CreateHeader(String, String, Object) |
Creates a new message header with the specified data. |
CreateHeader(String, String, Object, Boolean) |
Creates a new message header with the specified data. |
CreateHeader(String, String, Object, XmlObjectSerializer) |
Creates a header from an object to be serialized using the XmlFormatter. |
CreateHeader(String, String, Object, Boolean, String) |
Creates a new message header with the specified data. |
CreateHeader(String, String, Object, XmlObjectSerializer, Boolean) |
Creates a new message header with the specified data. |
CreateHeader(String, String, Object, Boolean, String, Boolean) |
Creates a new message header with the specified data. |
CreateHeader(String, String, Object, XmlObjectSerializer, Boolean, String) |
Creates a new message header with the specified data. |
CreateHeader(String, String, Object, XmlObjectSerializer, Boolean, String, Boolean) |
Creates a new message header with the specified data. |
- Source:
- MessageHeader.cs
- Source:
- MessageHeader.cs
Creates a new message header with the specified data.
public:
static System::ServiceModel::Channels::MessageHeader ^ CreateHeader(System::String ^ name, System::String ^ ns, System::Object ^ value);
public static System.ServiceModel.Channels.MessageHeader CreateHeader (string name, string ns, object value);
static member CreateHeader : string * string * obj -> System.ServiceModel.Channels.MessageHeader
Public Shared Function CreateHeader (name As String, ns As String, value As Object) As MessageHeader
Parameters
- name
- String
The local name of the header XML element.
- ns
- String
The namespace URI of the header XML element.
- value
- Object
The content of the header to be created.
Returns
A new MessageHeader object with the specified data.
Applies to
.NET 8 (package-provided) and other versions
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, 8 (package-provided) |
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
UWP | 10.0 |
- Source:
- MessageHeader.cs
- Source:
- MessageHeader.cs
Creates a new message header with the specified data.
public:
static System::ServiceModel::Channels::MessageHeader ^ CreateHeader(System::String ^ name, System::String ^ ns, System::Object ^ value, bool mustUnderstand);
public static System.ServiceModel.Channels.MessageHeader CreateHeader (string name, string ns, object value, bool mustUnderstand);
static member CreateHeader : string * string * obj * bool -> System.ServiceModel.Channels.MessageHeader
Public Shared Function CreateHeader (name As String, ns As String, value As Object, mustUnderstand As Boolean) As MessageHeader
Parameters
- name
- String
The local name of the header XML element.
- ns
- String
The namespace URI of the header XML element.
- value
- Object
The content of the header to be created.
- mustUnderstand
- Boolean
A value that indicates whether the header must be understood.
Returns
A new MessageHeader object with the specified data.
Applies to
.NET 8 (package-provided) and other versions
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, 8 (package-provided) |
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
UWP | 10.0 |
- Source:
- MessageHeader.cs
- Source:
- MessageHeader.cs
Creates a header from an object to be serialized using the XmlFormatter.
public:
static System::ServiceModel::Channels::MessageHeader ^ CreateHeader(System::String ^ name, System::String ^ ns, System::Object ^ value, System::Runtime::Serialization::XmlObjectSerializer ^ serializer);
public static System.ServiceModel.Channels.MessageHeader CreateHeader (string name, string ns, object value, System.Runtime.Serialization.XmlObjectSerializer serializer);
static member CreateHeader : string * string * obj * System.Runtime.Serialization.XmlObjectSerializer -> System.ServiceModel.Channels.MessageHeader
Public Shared Function CreateHeader (name As String, ns As String, value As Object, serializer As XmlObjectSerializer) As MessageHeader
Parameters
- name
- String
The local name of the header XML element.
- ns
- String
The namespace URI of the header XML element.
- value
- Object
The content of the header to be created.
- serializer
- XmlObjectSerializer
An XmlObjectSerializer that is used to serialize the header.
Returns
A new MessageHeader object with the specified data.
Applies to
.NET 8 (package-provided) and other versions
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, 8 (package-provided) |
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
UWP | 10.0 |
- Source:
- MessageHeader.cs
- Source:
- MessageHeader.cs
Creates a new message header with the specified data.
public:
static System::ServiceModel::Channels::MessageHeader ^ CreateHeader(System::String ^ name, System::String ^ ns, System::Object ^ value, bool mustUnderstand, System::String ^ actor);
public static System.ServiceModel.Channels.MessageHeader CreateHeader (string name, string ns, object value, bool mustUnderstand, string actor);
static member CreateHeader : string * string * obj * bool * string -> System.ServiceModel.Channels.MessageHeader
Public Shared Function CreateHeader (name As String, ns As String, value As Object, mustUnderstand As Boolean, actor As String) As MessageHeader
Parameters
- name
- String
The local name of the header XML element.
- ns
- String
The namespace URI of the header XML element.
- value
- Object
The content of the header to be created.
- mustUnderstand
- Boolean
A value that indicates whether the header must be understood.
- actor
- String
The targeted recipient of the message header.
Returns
A new MessageHeader object with the specified data.
Applies to
.NET 8 (package-provided) and other versions
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, 8 (package-provided) |
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
UWP | 10.0 |
- Source:
- MessageHeader.cs
- Source:
- MessageHeader.cs
Creates a new message header with the specified data.
public:
static System::ServiceModel::Channels::MessageHeader ^ CreateHeader(System::String ^ name, System::String ^ ns, System::Object ^ value, System::Runtime::Serialization::XmlObjectSerializer ^ serializer, bool mustUnderstand);
public static System.ServiceModel.Channels.MessageHeader CreateHeader (string name, string ns, object value, System.Runtime.Serialization.XmlObjectSerializer serializer, bool mustUnderstand);
static member CreateHeader : string * string * obj * System.Runtime.Serialization.XmlObjectSerializer * bool -> System.ServiceModel.Channels.MessageHeader
Public Shared Function CreateHeader (name As String, ns As String, value As Object, serializer As XmlObjectSerializer, mustUnderstand As Boolean) As MessageHeader
Parameters
- name
- String
The local name of the header XML element.
- ns
- String
The namespace URI of the header XML element.
- value
- Object
The content of the header to be created.
- serializer
- XmlObjectSerializer
An XmlObjectSerializer that is used to serialize the header.
- mustUnderstand
- Boolean
A value that indicates whether the header must be understood.
Returns
A new MessageHeader object with the specified data.
Applies to
.NET 8 (package-provided) and other versions
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, 8 (package-provided) |
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
UWP | 10.0 |
- Source:
- MessageHeader.cs
- Source:
- MessageHeader.cs
Creates a new message header with the specified data.
public:
static System::ServiceModel::Channels::MessageHeader ^ CreateHeader(System::String ^ name, System::String ^ ns, System::Object ^ value, bool mustUnderstand, System::String ^ actor, bool relay);
public static System.ServiceModel.Channels.MessageHeader CreateHeader (string name, string ns, object value, bool mustUnderstand, string actor, bool relay);
static member CreateHeader : string * string * obj * bool * string * bool -> System.ServiceModel.Channels.MessageHeader
Public Shared Function CreateHeader (name As String, ns As String, value As Object, mustUnderstand As Boolean, actor As String, relay As Boolean) As MessageHeader
Parameters
- name
- String
The local name of the header XML element.
- ns
- String
The namespace URI of the header XML element.
- value
- Object
The content of the header to be created.
- mustUnderstand
- Boolean
A value that indicates whether the header must be understood.
- actor
- String
The targeted recipient of the message header.
- relay
- Boolean
A value that indicates whether the header should be relayed.
Returns
A new MessageHeader object with the specified data.
Applies to
.NET 8 (package-provided) and other versions
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, 8 (package-provided) |
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
UWP | 10.0 |
- Source:
- MessageHeader.cs
- Source:
- MessageHeader.cs
Creates a new message header with the specified data.
public:
static System::ServiceModel::Channels::MessageHeader ^ CreateHeader(System::String ^ name, System::String ^ ns, System::Object ^ value, System::Runtime::Serialization::XmlObjectSerializer ^ serializer, bool mustUnderstand, System::String ^ actor);
public static System.ServiceModel.Channels.MessageHeader CreateHeader (string name, string ns, object value, System.Runtime.Serialization.XmlObjectSerializer serializer, bool mustUnderstand, string actor);
static member CreateHeader : string * string * obj * System.Runtime.Serialization.XmlObjectSerializer * bool * string -> System.ServiceModel.Channels.MessageHeader
Public Shared Function CreateHeader (name As String, ns As String, value As Object, serializer As XmlObjectSerializer, mustUnderstand As Boolean, actor As String) As MessageHeader
Parameters
- name
- String
The local name of the header XML element.
- ns
- String
The namespace URI of the header XML element.
- value
- Object
The content of the header to be created.
- serializer
- XmlObjectSerializer
An XmlObjectSerializer that is used to serialize the header.
- mustUnderstand
- Boolean
A value that indicates whether the header must be understood.
- actor
- String
The targeted recipient of the message header.
Returns
A new MessageHeader object with the specified data.
Applies to
.NET 8 (package-provided) and other versions
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, 8 (package-provided) |
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
UWP | 10.0 |
- Source:
- MessageHeader.cs
- Source:
- MessageHeader.cs
Creates a new message header with the specified data.
public:
static System::ServiceModel::Channels::MessageHeader ^ CreateHeader(System::String ^ name, System::String ^ ns, System::Object ^ value, System::Runtime::Serialization::XmlObjectSerializer ^ serializer, bool mustUnderstand, System::String ^ actor, bool relay);
public static System.ServiceModel.Channels.MessageHeader CreateHeader (string name, string ns, object value, System.Runtime.Serialization.XmlObjectSerializer serializer, bool mustUnderstand, string actor, bool relay);
static member CreateHeader : string * string * obj * System.Runtime.Serialization.XmlObjectSerializer * bool * string * bool -> System.ServiceModel.Channels.MessageHeader
Public Shared Function CreateHeader (name As String, ns As String, value As Object, serializer As XmlObjectSerializer, mustUnderstand As Boolean, actor As String, relay As Boolean) As MessageHeader
Parameters
- name
- String
The local name of the header XML element.
- ns
- String
The namespace URI of the header XML element.
- value
- Object
The content of the header to be created.
- serializer
- XmlObjectSerializer
An XmlObjectSerializer that is used to serialize the header.
- mustUnderstand
- Boolean
A value that indicates whether the header must be understood.
- actor
- String
The targeted recipient of the message header.
- relay
- Boolean
A value that indicates whether the header should be relayed.
Returns
A new MessageHeader object with the specified data.
Applies to
.NET 8 (package-provided) and other versions
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, 8 (package-provided) |
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
UWP | 10.0 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: