Udostępnij przez


MessagePropertyFilter.SetAll Metoda

Definicja

Określa, aby pobrać wszystkie właściwości komunikatu podczas odbierania komunikatu.

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

Przykłady

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

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

Uwagi

Służy SetAll do ustawiania wszystkich właściwości logicznych MessagePropertyFilter na truewartość . Powoduje to pobranie wszystkich właściwości komunikatów podczas odbierania komunikatów. SetAllnie ma wpływu na wartości , DefaultBodySizeDefaultExtensionSizelub DefaultLabelSize.

Po wywołaniu metody SetAllmożna ustawić poszczególne wartości filtru tak false , aby ograniczyć właściwości pobrane po odebraniu komunikatu.

Dotyczy

Zobacz też