語言

MessagePropertyFilter.ClearAll 方法

定義

將所有布林濾波器值設為 false,使收到訊息時不會取得任何訊息屬性。

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

範例

以下程式碼範例呼叫該 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();

備註

請將 ClearAll 所有 MessagePropertyFilter 布林屬性設定為 false。 這會導致接收訊息時不會取得任何訊息屬性。 ClearAll不影響 、 DefaultBodySizeDefaultExtensionSize、 或 DefaultLabelSize的值。

呼叫 ClearAll後,必須至少設定一個濾器屬性 為 , true 才能接收與訊息相關的資料。 你可以將個別屬性設為 true,或是呼叫 SetDefaults 或 SetAll。

適用於

另請參閱