共用方式為


PeerMessagePropagationFilter.ShouldMessagePropagate 方法

定義

傳回是否應該傳播在對等通道上接收到的訊息,如果是,則為訊息目的端。

public:
 abstract System::ServiceModel::PeerMessagePropagation ShouldMessagePropagate(System::ServiceModel::Channels::Message ^ message, System::ServiceModel::PeerMessageOrigination origination);
public abstract System.ServiceModel.PeerMessagePropagation ShouldMessagePropagate (System.ServiceModel.Channels.Message message, System.ServiceModel.PeerMessageOrigination origination);
abstract member ShouldMessagePropagate : System.ServiceModel.Channels.Message * System.ServiceModel.PeerMessageOrigination -> System.ServiceModel.PeerMessagePropagation
Public MustOverride Function ShouldMessagePropagate (message As Message, origination As PeerMessageOrigination) As PeerMessagePropagation

參數

message
Message

要評估以供傳播的訊息。

origination
PeerMessageOrigination

PeerMessageOrigination 列舉值,指定受評估訊息的原點 (本機或遠端)。

傳回

PeerMessagePropagation 列舉值,表示訊息目的端 (本機、遠端或兩者,或者完全不傳播)。

適用於