This documentation is archived and is not being maintained.

Message.CreateMessage Method (MessageVersion, MessageFault, String)

Creates a message that contains a SOAP fault, a version and an action.

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

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



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


A MessageFault object that represents a SOAP fault.


A description of how the message should be processed.

Return Value

A Message object for the message created.

Exception typeCondition


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

This static method is used to create a new copy of message ready for sending.

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