MessageBody Class

 

The message body.

Namespace:   Microsoft.ConfigurationManagement.Messaging.Framework
Assembly:  Microsoft.ConfigurationManagement.Messaging (in Microsoft.ConfigurationManagement.Messaging.dll)

System::Object
  Microsoft.ConfigurationManagement.Messaging.Framework::MessageBody

[SerializableAttribute]
public ref class MessageBody sealed : IDisposable, ISerializable

NameDescription
System_CAPS_pubmethodMessageBody()

Initializes a new instance of the MessageBody class.

System_CAPS_pubmethodMessageBody(array<Byte>^)

Initializes a new instance of the MessageBody class. The constructor builds a body from a raw byte stream

System_CAPS_pubmethodMessageBody(String^)

Initializes a new instance of the MessageBody class.

NameDescription
System_CAPS_pubpropertyPayload

Gets or sets the message payload.

System_CAPS_pubpropertyPayloadEncoding

Gets or sets the encoding for the payload. The default is UTF-16 (Unicode).

System_CAPS_pubpropertyPayloadHasChanged

Indicates whether the payload has changed since the data was last read.

System_CAPS_pubpropertyPayloadSize

Gets the size of the payload, in bytes.

System_CAPS_pubpropertyPayloadStream

Gets the stream that contains the raw payload.

NameDescription
System_CAPS_pubmethodCompress(Type^)

Message body inline compression.

System_CAPS_pubmethodCompress<T>()

Compresses the payload by using a compressor.

System_CAPS_pubmethodCopyPayloadToStream(Stream^)

Copies the payload to an existing stream.

System_CAPS_pubmethodDecompress(Type^)

Message body inline decompression.

System_CAPS_pubmethodDecompress<T>()

Decompresses the payload using a compressor.

System_CAPS_pubmethodDispose()

Implementation of IDisposable.

System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetObjectData(SerializationInfo^, StreamingContext)

Controls object serialization.

System_CAPS_pubmethodGetRawPayload()

Gets the raw payload as a byte array. This is a copy of the internal payload; setting this method will not change the internal payload. To overwrite the internal payload, you must use SetRawPayload.

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodSetPayloadFromStream(Stream^)

Sets the payload from an existing stream.

System_CAPS_pubmethodSetPayloadFromStream(Stream^, Int64)

Sets the payload from an existing stream.

System_CAPS_pubmethodSetRawPayload(array<Byte>^)

Sets the raw payload.

System_CAPS_pubmethodStripUnicodeBom()

Strips the Unicode byte order mark (BOM) to the payload inline.

System_CAPS_pubmethodToString()

Returns the message payload. (Overrides Object::ToString().)

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: