When trying to add an object property to my Service Bus Queue, I encountered the following error:
"Serialization operation failed due to unsupported type RichardLeeman.Model.MyObject."
So I added the [Serializable] annotation to the class, but to no avail. The issue seems to be that the property bag only likes simple types like int or string.
var client = QueueClient.CreateFromConnectionString(SERVICE_BUS_CNN, "myqueue");
var message = new BrokeredMessage("my test message");
message.Properties.Add(new KeyValuePair<string, object>("MyObjectProperty",json));