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

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

适用于

另请参阅