MessagePropertyFilter.SetDefaults 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.
Sets the filter values of common Message Queuing properties to true
and the integer-valued properties to their default values.
public:
void SetDefaults();
public void SetDefaults ();
member this.SetDefaults : unit -> unit
Public Sub SetDefaults ()
Examples
The following code example calls the SetDefaults method.
// Set all of the queue's MessageReadPropertyFilter
// properties to their defaults.
queue->MessageReadPropertyFilter->SetDefaults();
// 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
See also
Povratne informacije
https://aka.ms/ContentUserFeedback.
Kmalu na voljo: V letu 2024 bomo ukinili storitev Težave v storitvi GitHub kot mehanizem za povratne informacije za vsebino in jo zamenjali z novim sistemom za povratne informacije. Za več informacij si oglejte:Pošlji in prikaži povratne informacije za