MessagePropertyFilter.SetAll 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.
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.