Export (0) Print
Expand All

TypedMessageConverter.Create Method (Type, String, 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,
	string defaultNamespace,
	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.

defaultNamespace
Type: System.String

A namespace.

formatterAttribute
Type: System.ServiceModel.XmlSerializerFormatAttribute

A XmlSerializerFormatAttribute that specifies the formatter to be used.

ExceptionCondition
ArgumentNullException

Arguments are null

ArgumentException

The specified message contract type does not have the MessageContractAttribute applied

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft