MessagePropertyFilter.SetDefaults Method

Definition

Sets the filter values of common Message Queuing properties to true and the integer-valued properties to their default values.

C#
public void SetDefaults();

Examples

The following code example calls the SetDefaults method.

C#
// Set all of the queue's MessageReadPropertyFilter properties to their
// defaults.
queue.MessageReadPropertyFilter.SetDefaults();

Remarks

Use SetDefaults to set the following MessagePropertyFilter Boolean-valued properties to true. These are the most common properties a MessageQueue will typically interact with the following:

SetDefaults sets the properties in the following table to their default values.

Property Default value
DefaultBodySize 1024
DefaultExtensionSize 255
DefaultLabelSize 255

The MessageQueue.MessageReadPropertyFilter property represents a MessagePropertyFilter on which SetDefaults has been called.

Applies to

Produkt Verzie
.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