TypedMessageConverter Class

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Converts a typed message to an untyped message, or an untyped message to a typed message.

C#
public abstract class TypedMessageConverter
Inheritance
TypedMessageConverter

Remarks

This class provides functionalities to convert a typed message to an untyped message, or an untyped message to a typed message. A typed message is an instance of a type that has the MessageContractAttribute attribute annotated. An untyped message is one that is an instance of the Message class. You can annotate a type with the MessageContractAttribute to create a custom message type, and then use the methods provided by this class to convert it to an untyped Message instance.

Constructors

TypedMessageConverter()

Initializes a new instance of the TypedMessageConverter class.

Methods

Create(Type, String, DataContractFormatAttribute)

Represents a static method that returns a TypedMessageConverter instance.

Create(Type, String, String, DataContractFormatAttribute)

Represents a static method that returns a TypedMessageConverter instance.

Create(Type, String, String, XmlSerializerFormatAttribute)

Represents a static method that returns a TypedMessageConverter instance.

Create(Type, String, String)

Represents a static method that returns a TypedMessageConverter instance.

Create(Type, String, XmlSerializerFormatAttribute)

Represents a static method that returns a TypedMessageConverter instance.

Create(Type, String)

Represents a static method that returns a TypedMessageConverter instance.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
FromMessage(Message)

Creates a typed message from the specified Message instance.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToMessage(Object, MessageVersion)

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

ToMessage(Object)

Creates a Message instance from the specified typed message.

ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

Proizvod Verzije
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

See also