TypedMessageConverter.ToMessage Method (Object, MessageVersion)

 

Creates a Message instance from the specified typed message using the specified version.

Namespace:   System.ServiceModel.Description
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public abstract Message ToMessage(
	object typedMessage,
	MessageVersion version
)

Parameters

typedMessage
Type: System.Object

A typed message.

version
Type: System.ServiceModel.Channels.MessageVersion

A MessageVersion that specifies the versions of SOAP and WS-Addressing associated with a message.

Return Value

Type: System.ServiceModel.Channels.Message

A Message instance.

.NET Framework
Available since 3.0
Return to top
Show: