Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Message.CreateMessage Method (MessageVersion, String, BodyWriter)

Creates a message with a body that consists of an array of bytes.

Namespace: System.ServiceModel.Channels
Assembly: System.ServiceModel (in system.servicemodel.dll)

public static Message CreateMessage (
	MessageVersion version,
	string action,
	BodyWriter body
)
public static Message CreateMessage (
	MessageVersion version, 
	String action, 
	BodyWriter body
)
public static function CreateMessage (
	version : MessageVersion, 
	action : String, 
	body : BodyWriter
) : Message
Not applicable.

Parameters

version

A MessageVersion object that specifies the SOAP version to use for the message.

action

A description of how the message should be processed.

body

A BodyWriter of type byte.

Return Value

A Message object for the message created.

Exception typeCondition

ArgumentNullException

version or action is a null reference (Nothing in Visual Basic).

An empty message is useful for an endpoint to send an alert to another endpoint without any actual content.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2015 Microsoft