Windows Azure Service Bus - BrokeredMessage.Properties with Enum Value Windows Azure Service Bus - BrokeredMessage.Properties with Enum Value azure azure

Windows Azure Service Bus - BrokeredMessage.Properties with Enum Value


Shortly, you can use only simple types like string, integers.

For your case, you can try two ways

  1. brokeredMessage.Properties.Add("FooBar", (int)FooBar.Foo);
  2. brokeredMessage.Properties.Add("FooBar", FooBar.Foo.ToString());

Choose by you self, which one is better for you.