Class MessageSerializerResults
- Namespace
- AWS.Messaging.Serialization
- Assembly
- AWS.Messaging.dll
Represents the results of a message serialization operation, containing both the serialized data and its corresponding content type.
public class MessageSerializerResults
- Inheritance
-
MessageSerializerResults
Constructors
MessageSerializerResults(string, string)
Initializes a new instance of the MessageSerializerResults class.
public MessageSerializerResults(string data, string contentType)
Parameters
data
stringThe serialized message data as a string.
contentType
stringThe MIME content type of the serialized data.
Properties
ContentType
Gets or sets the MIME content type of the serialized data. Common values include "application/json" or "application/xml".
public string ContentType { get; }
Property Value
Data
Gets or sets the serialized message data as a string. This contains the actual serialized content of the message.
public string Data { get; }