MessagePropertyFilter.ClearAll Metoda

Definicja

Ustawia wszystkie wartości filtru logicznego na falsewartość , aby podczas odbierania komunikatu nie pobrano żadnych właściwości komunikatów.

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

Przykłady

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

// Set all of the queue's MessageReadPropertyFilter 
// Boolean properties to false.
queue->MessageReadPropertyFilter->ClearAll();
// Set all of the queue's MessageReadPropertyFilter Boolean properties
// to false.
queue.MessageReadPropertyFilter.ClearAll();

Uwagi

Użyj polecenia ClearAll , aby ustawić wszystkie MessagePropertyFilter właściwości logiczne na falsewartość . Powoduje to, że podczas odbierania komunikatów nie są pobierane żadne właściwości komunikatów. ClearAllnie ma wpływu na wartości , DefaultBodySizeDefaultExtensionSizelub DefaultLabelSize.

Po wywołaniu ClearAllmetody należy ustawić co najmniej jedną właściwość true filtru, aby odbierać dane związane z komunikatem. Możesz ustawić poszczególne właściwości na , albo wywołać SetDefaults metodę truelub SetAll.

Dotyczy

Zobacz też