MessageHeader.OnWriteStartHeader(XmlDictionaryWriter, MessageVersion) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當使用指定的 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 版本的相關資訊。