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 不会影响 DefaultBodySizeDefaultExtensionSizeDefaultLabelSize

调用 ClearAll后,必须至少设置一个筛选器属性 true 才能接收与消息相关的数据。 可以将单个属性 true设置为,也可以调用 SetDefaultsSetAll调用。

适用于

另请参阅