語言

MessagePropertyFilter.SetAll 方法

定義

指定在接收訊息時擷取所有訊息屬性。

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 以限制接收訊息時擷取的屬性。

適用於

另請參閱