編集

次の方法で共有


MessageHeader.CreateHeader Method

Definition

Creates a new message header.

Overloads

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.

CreateHeader(String, String, Object)

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

CreateHeader(String, String, Object, Boolean)

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

CreateHeader(String, String, Object, XmlObjectSerializer)

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

CreateHeader(String, String, Object, Boolean, String)

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

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

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

CreateHeader(String, String, Object, Boolean, String, Boolean)

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

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

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

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

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