Bewerken

Delen via


MessagePropertyFilter.SetAll Method

Definition

Specifies to retrieve all message properties when receiving a message.

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

Examples

The following code example calls the SetAll method.

// Set all of the queue's MessageReadPropertyFilter 
// Boolean properties to true.
queue->MessageReadPropertyFilter->SetAll();
// 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

See also