MessagePropertyFilter.SetDefaults Metoda

Definicja

Ustawia wartości filtru typowych właściwości kolejkowania komunikatów na true i właściwości liczb całkowitych na ich wartości domyślne.

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

Przykłady

Poniższy przykład kodu wywołuje metodę SetDefaults .

// 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();

Uwagi

Użyj SetDefaults polecenia , aby ustawić następujące MessagePropertyFilter właściwości wartości logiczne na truewartość . Są to najbardziej typowe właściwości, które MessageQueue zwykle wchodzą w interakcję z następującymi elementami:

SetDefaults Ustawia właściwości w poniższej tabeli na ich wartości domyślne.

Właściwość Wartość domyślna
DefaultBodySize 1024
DefaultExtensionSize 255
DefaultLabelSize 255

Właściwość MessageQueue.MessageReadPropertyFilter reprezentuje MessagePropertyFilter obiekt , na którym SetDefaults została wywołana.

Dotyczy

Zobacz też