共用方式為


MessageHeader.OnWriteStartHeader(XmlDictionaryWriter, MessageVersion) 方法

定義

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

protected:
 virtual void OnWriteStartHeader(System::Xml::XmlDictionaryWriter ^ writer, System::ServiceModel::Channels::MessageVersion ^ messageVersion);
protected virtual void OnWriteStartHeader (System.Xml.XmlDictionaryWriter writer, System.ServiceModel.Channels.MessageVersion messageVersion);
abstract member OnWriteStartHeader : System.Xml.XmlDictionaryWriter * System.ServiceModel.Channels.MessageVersion -> unit
override this.OnWriteStartHeader : System.Xml.XmlDictionaryWriter * System.ServiceModel.Channels.MessageVersion -> unit
Protected Overridable Sub OnWriteStartHeader (writer As XmlDictionaryWriter, messageVersion As MessageVersion)

參數

writer
XmlDictionaryWriter

用於序列化開始標頭的 XmlDictionaryWriter

messageVersion
MessageVersion

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

適用於