MessagePropertyFilter.ClearAll Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets all Boolean filter values to false
, so that no message properties are retrieved when receiving a message.
public:
void ClearAll();
public void ClearAll ();
member this.ClearAll : unit -> unit
Public Sub ClearAll ()
Examples
The following code example calls the ClearAll method.
// Set all of the queue's MessageReadPropertyFilter
// Boolean properties to false.
queue->MessageReadPropertyFilter->ClearAll();
// Set all of the queue's MessageReadPropertyFilter Boolean properties
// to false.
queue.MessageReadPropertyFilter.ClearAll();
Remarks
Use ClearAll to set all MessagePropertyFilter Boolean properties to false
. This causes no message properties to be retrieved when receiving messages. ClearAll does not affect the values for DefaultBodySize, DefaultExtensionSize, or DefaultLabelSize.
After calling ClearAll, it is necessary to set at least one filter property to true
in order to receive data related to a message. You can either set individual properties to true
, or you can call SetDefaults or SetAll.