PeerMessagePropagationFilter.ShouldMessagePropagate 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
傳回是否應該傳播在對等通道上接收到的訊息,如果是,則為訊息目的端。
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 列舉值,表示訊息目的端 (本機、遠端或兩者,或者完全不傳播)。