MessageHeaders Constructors

Definition

Initializes a new instance of the MessageHeaders class.

Overloads

MessageHeaders(MessageHeaders)

Initializes a new instance of the MessageHeaders class with the specified collection of message headers.

MessageHeaders(MessageVersion)

Initializes a new instance of the MessageHeaders class with the specified message version.

MessageHeaders(MessageVersion, Int32)

Initializes a new instance of the MessageHeaders class with the specified message version and size.

MessageHeaders(MessageHeaders)

Source:
MessageHeaders.cs
Source:
MessageHeaders.cs
Source:
MessageHeaders.cs

Initializes a new instance of the MessageHeaders class with the specified collection of message headers.

public MessageHeaders (System.ServiceModel.Channels.MessageHeaders collection);

Parameters

collection
MessageHeaders

A collection of message headers.

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, 4.7.1, 4.7.2, 4.8, 4.8.1
UWP 10.0

MessageHeaders(MessageVersion)

Source:
MessageHeaders.cs
Source:
MessageHeaders.cs
Source:
MessageHeaders.cs

Initializes a new instance of the MessageHeaders class with the specified message version.

public MessageHeaders (System.ServiceModel.Channels.MessageVersion version);

Parameters

version
MessageVersion

The SOAP version of the message.

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, 4.7.1, 4.7.2, 4.8, 4.8.1
UWP 10.0

MessageHeaders(MessageVersion, Int32)

Source:
MessageHeaders.cs
Source:
MessageHeaders.cs
Source:
MessageHeaders.cs

Initializes a new instance of the MessageHeaders class with the specified message version and size.

public MessageHeaders (System.ServiceModel.Channels.MessageVersion version, int initialSize);

Parameters

version
MessageVersion

The SOAP version of the message.

initialSize
Int32

The size of the header.

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, 4.7.1, 4.7.2, 4.8, 4.8.1
UWP 10.0