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

Użyj SetAll polecenia , aby ustawić wszystkie właściwości logiczne 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 SetAllmetody można ustawić poszczególne wartości filtru na false w celu ograniczenia właściwości pobranych po odebraniu komunikatu.

Dotyczy

Zobacz też