MessagePropertyFilter.ClearAll 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将所有布尔筛选器值设置为 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或 DefaultExtensionSizeDefaultLabelSize.
调用 ClearAll后,必须至少设置一个筛选器属性 true 才能接收与消息相关的数据。 可以将单个属性 true设置为,也可以调用 SetDefaults 或 SetAll。