Επεξεργασία

Κοινή χρήση μέσω


MessagePropertyFilter.ClearAll Method

Definition

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.

Applies to

See also