TypedMessageConverter.Create Method (Type, String, XmlSerializerFormatAttribute)

 

Represents a static method that returns a TypedMessageConverter instance.

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

public static TypedMessageConverter Create(
	Type messageContract,
	string action,
	XmlSerializerFormatAttribute formatterAttribute
)

Parameters

messageContract
Type: System.Type

A message contract type that is a Type annotated with a MessageContractAttribute.

action
Type: System.String

An action string.

formatterAttribute
Type: System.ServiceModel.XmlSerializerFormatAttribute

A XmlSerializerFormatAttribute that specifies the formatter to be used.

Exception Condition
ArgumentNullException

Arguments are null

ArgumentException

The specified message contract type does not have the MessageContractAttribute applied

.NET Framework
Available since 3.0
Return to top
Show: