MessageQueueCriteria.ClearAll Method

Definition

Clears all properties from being built into a filter and puts all property values into a "not set" state.

public:
 void ClearAll();
public void ClearAll ();
member this.ClearAll : unit -> unit
Public Sub ClearAll ()

Remarks

When you call ClearAll, the method sets flags related to each of the MessageQueueCriteria properties, which indicate that no properties are to be included when the application creates the search filter. ClearAll resets all properties that currently have values into a "not set" default state. Any properties that you subsequently change are combined using the logical AND operator to define a new filter for the GetPublicQueues method. When you change the property, the method that sets the property also sets a flag to indicate that it should be included in the filter you are building.

You cannot remove individual properties from the search filter. Instead, you remove all properties from the filter by calling ClearAll, and then set the properties that you do want to build into the search filter.

Applies to