Edit

Share via


MessagePropertyFilter.SetAll Method

Definition

Specifies to retrieve all message properties when receiving a message.

public void SetAll();

Examples

The following code example calls the SetAll method.

// Set all of the queue's MessageReadPropertyFilter Boolean properties
// to true.
queue.MessageReadPropertyFilter.SetAll();

Remarks

Use SetAll to set all Boolean MessagePropertyFilter properties to true. This causes all message properties to be retrieved when receiving messages. SetAll does not affect the values for DefaultBodySize, DefaultExtensionSize, or DefaultLabelSize.

After calling SetAll, you can set individual filter values to false in order to restrict the properties retrieved when the message is received.

Applies to

Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also