Edit

Share via


ByteStreamMessage.CreateMessage Method

Definition

Creates a byte stream message.

Overloads

CreateMessage(ArraySegment<Byte>)

Creates a byte stream message using the specified buffer data.

CreateMessage(Stream)

Creates a byte stream message using the specified stream.

CreateMessage(ArraySegment<Byte>, BufferManager)

Creates a byte stream message using the specified buffer data and buffer manager.

CreateMessage(ArraySegment<Byte>)

Creates a byte stream message using the specified buffer data.

public:
 static System::ServiceModel::Channels::Message ^ CreateMessage(ArraySegment<System::Byte> buffer);
public static System.ServiceModel.Channels.Message CreateMessage (ArraySegment<byte> buffer);
static member CreateMessage : ArraySegment<byte> -> System.ServiceModel.Channels.Message
Public Shared Function CreateMessage (buffer As ArraySegment(Of Byte)) As Message

Parameters

buffer
ArraySegment<Byte>

The buffer that provides data for the message to be created.

Returns

A Message object for the message created.

Applies to

CreateMessage(Stream)

Creates a byte stream message using the specified stream.

public:
 static System::ServiceModel::Channels::Message ^ CreateMessage(System::IO::Stream ^ stream);
public static System.ServiceModel.Channels.Message CreateMessage (System.IO.Stream stream);
static member CreateMessage : System.IO.Stream -> System.ServiceModel.Channels.Message
Public Shared Function CreateMessage (stream As Stream) As Message

Parameters

stream
Stream

The stream used to create the message.

Returns

A Message object for the message created.

Applies to

CreateMessage(ArraySegment<Byte>, BufferManager)

Creates a byte stream message using the specified buffer data and buffer manager.

public:
 static System::ServiceModel::Channels::Message ^ CreateMessage(ArraySegment<System::Byte> buffer, System::ServiceModel::Channels::BufferManager ^ bufferManager);
public static System.ServiceModel.Channels.Message CreateMessage (ArraySegment<byte> buffer, System.ServiceModel.Channels.BufferManager bufferManager);
static member CreateMessage : ArraySegment<byte> * System.ServiceModel.Channels.BufferManager -> System.ServiceModel.Channels.Message
Public Shared Function CreateMessage (buffer As ArraySegment(Of Byte), bufferManager As BufferManager) As Message

Parameters

buffer
ArraySegment<Byte>

The buffer that provides data for the message to be created.

bufferManager
BufferManager

The BufferManager that manages the buffer to which the message is created.

Returns

A Message object for the message created.

Applies to