共用方式為


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

適用於