MessagePropertyFilter.SetAll 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
指定在接收訊息時擷取所有訊息屬性。
public:
void SetAll();
public void SetAll();
member this.SetAll : unit -> unit
Public Sub SetAll ()
範例
以下程式碼範例呼叫該 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();
備註
請將 SetAll 所有布林 MessagePropertyFilter 屬性設定為 true。 這會導致接收訊息時所有訊息屬性被檢索。
SetAll不影響 、 DefaultBodySizeDefaultExtensionSize、 或 DefaultLabelSize的值。
呼叫 SetAll後,你可以將個別的濾波器值設為 , false 以限制接收訊息時擷取的屬性。