MessagePropertyFilter.SetDefaults Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

Namespace:   System.Messaging
Assembly:  System.Messaging (in System.Messaging.dll)

public void SetDefaults()

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.

The following code example calls the SetDefaults method.

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

.NET Framework
Available since 1.1
Return to top
Show: