TypedMessageConverter Class
Converts a typed message to an untyped message, or an untyped message to a typed message.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
The TypedMessageConverter type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | TypedMessageConverter | Initializes a new instance of the TypedMessageConverter class. |
| Name | Description | |
|---|---|---|
![]() ![]() | Create(Type, String) | Represents a static method that returns a TypedMessageConverter instance. |
![]() ![]() | Create(Type, String, DataContractFormatAttribute) | 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, String) | 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. |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | FromMessage | Creates a typed message from the specified Message instance. |
![]() | GetHashCode | Serves as a hash function for a particular type. (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) | Creates a Message instance from the specified typed message. |
![]() | ToMessage(Object, MessageVersion) | Creates a Message instance from the specified typed message using the specified version. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
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.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
