SALES: 1-800-867-1380

BrokeredMessage Constructor (Object, XmlObjectSerializer)


Initializes a new instance of the BrokeredMessage class from a given object using the provided XmlObjectSerializer.

Namespace:   Microsoft.ServiceBus.Messaging
Assembly:  Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)

Public Sub New (
	serializableObject As Object,
	serializer As XmlObjectSerializer


Type: System.Object

The serializable object.

Type: System.Runtime.Serialization.XmlObjectSerializer

The serializer object.

You should be aware of the exceptions that the provided Serializer can throw and take appropriate actions. See for a list of possible exceptions and their causes.

Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft