ContextMessageProperty.AddOrReplaceInMessageProperties 方法

定义

设置 ContextMessageProperty 当前实例的指定 MessageProperties 集合中的 ContextMessageProperty 属性的值。

public:
 void AddOrReplaceInMessageProperties(System::ServiceModel::Channels::MessageProperties ^ properties);
public void AddOrReplaceInMessageProperties (System.ServiceModel.Channels.MessageProperties properties);
member this.AddOrReplaceInMessageProperties : System.ServiceModel.Channels.MessageProperties -> unit
Public Sub AddOrReplaceInMessageProperties (properties As MessageProperties)

参数

properties
MessageProperties

要设置其上下文消息属性的 MessageProperties 的集合。

例外

propertiesnull

适用于