共用方式為


MessageHeader.OnWriteHeaderContents 方法

定義

當使用指定的 XML 寫入器序列化標頭內容時呼叫。

protected:
 abstract void OnWriteHeaderContents(System::Xml::XmlDictionaryWriter ^ writer, System::ServiceModel::Channels::MessageVersion ^ messageVersion);
protected abstract void OnWriteHeaderContents (System.Xml.XmlDictionaryWriter writer, System.ServiceModel.Channels.MessageVersion messageVersion);
abstract member OnWriteHeaderContents : System.Xml.XmlDictionaryWriter * System.ServiceModel.Channels.MessageVersion -> unit
Protected MustOverride Sub OnWriteHeaderContents (writer As XmlDictionaryWriter, messageVersion As MessageVersion)

參數

writer
XmlDictionaryWriter

用於序列化標頭內容的 XmlDictionaryWriter

messageVersion
MessageVersion

物件包含與訊息及其交換相關聯之 SOAP 版本的相關資訊。

適用於