SALES: 1-800-867-1380

TopicDescription.EnableFilteringMessagesBeforePublishing Property

Gets or sets whether messages should be filtered before publishing.

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

public bool EnableFilteringMessagesBeforePublishing { get; set; }

Property Value

Type: System.Boolean
true if message filtering is enabled before publishing; otherwise, false.


Thrown if the subscriptions do not match.

If the publisher of the message must know whether there are any subscribers at the time of message publication, you can set this property to true. If there are no subscribers at the time of message publication, then the message publication will fail.

TopicDescription td = new TopicDescription("Topic");
td.EnableFilteringMessagesBeforePublishing = true;
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft