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 ,以限制收到訊息時擷取的屬性。

適用於

另請參閱