Share via


MessagePropertyFilter.SetAll 方法

定义

指定在接收消息时检索消息的所有属性。

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

示例

下面的代码示例调用 SetAll 方法。

// Set all of the queue's MessageReadPropertyFilter 
// Boolean properties to true.
queue->MessageReadPropertyFilter->SetAll();
// Set all of the queue's MessageReadPropertyFilter Boolean properties
// to true.
queue.MessageReadPropertyFilter.SetAll();

注解

使用 SetAll 将所有布尔 MessagePropertyFilter 属性设置为 true。 这会导致在接收消息时检索所有消息属性。 SetAll不影响 、 DefaultExtensionSizeDefaultLabelSize的值DefaultBodySize

调用 SetAll后,可以将单个筛选器值设置为 false ,以限制在收到消息时检索到的属性。

适用于

另请参阅