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を呼び出した後、メッセージに関連するデータを受信するには、少なくとも 1 つのフィルター プロパティをtrueに設定する必要があります。 個々のプロパティを trueに設定するか、 SetDefaults または SetAllを呼び出すことができます。

適用対象

こちらもご覧ください