Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
EnableFilteringMessagesBeforePublishing Property

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.

Exception Condition
NoMatchingSubscriptionException

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;
Return to top
Show:
© 2015 Microsoft