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은 ( DefaultBodySize또는 DefaultExtensionSize.)의 값에 DefaultLabelSize영향을 주지 않습니다.

호출 ClearAll후 메시지와 관련된 데이터를 수신하려면 하나 이상의 필터 속성을 true 설정해야 합니다. 개별 속성을 로 설정하거나 호출하거나 호출 수 있습니다.

적용 대상

추가 정보