TopicDescription.EnableFilteringMessagesBeforePublishing Property


Gets or sets whether messages should be filtered before publishing.

public bool EnableFilteringMessagesBeforePublishing { get; set; }
member this.EnableFilteringMessagesBeforePublishing : bool with get, set
Public Property EnableFilteringMessagesBeforePublishing As Boolean

Property Value

true if message filtering is enabled before publishing; otherwise, false.


Thrown if the subscriptions do not match.


This feature is recommended to be used only for development and testing purposes. For example, when new Rules or Filters are being added to the topic, this feature can be used to verify that the new filter expression is working as expected. Once tested and working fine, the feature should be turned off in production.

Applies to