MessageHeader.WriteHeader 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
使用 XML 寫入器序列化此標頭。
多載
WriteHeader(XmlDictionaryWriter, MessageVersion) |
使用指定的 XML 寫入器序列化此標頭。 |
WriteHeader(XmlWriter, MessageVersion) |
使用指定的 XML 寫入器序列化此標頭。 |
WriteHeader(XmlDictionaryWriter, MessageVersion)
使用指定的 XML 寫入器序列化此標頭。
public:
void WriteHeader(System::Xml::XmlDictionaryWriter ^ writer, System::ServiceModel::Channels::MessageVersion ^ messageVersion);
public void WriteHeader (System.Xml.XmlDictionaryWriter writer, System.ServiceModel.Channels.MessageVersion messageVersion);
member this.WriteHeader : System.Xml.XmlDictionaryWriter * System.ServiceModel.Channels.MessageVersion -> unit
Public Sub WriteHeader (writer As XmlDictionaryWriter, messageVersion As MessageVersion)
參數
- writer
- XmlDictionaryWriter
用來序列化標頭的 XmlDictionaryWriter。
- messageVersion
- MessageVersion
物件包含與訊息及其交換相關聯之 SOAP 版本的相關資訊。
適用於
WriteHeader(XmlWriter, MessageVersion)
使用指定的 XML 寫入器序列化此標頭。
public:
void WriteHeader(System::Xml::XmlWriter ^ writer, System::ServiceModel::Channels::MessageVersion ^ messageVersion);
public void WriteHeader (System.Xml.XmlWriter writer, System.ServiceModel.Channels.MessageVersion messageVersion);
member this.WriteHeader : System.Xml.XmlWriter * System.ServiceModel.Channels.MessageVersion -> unit
Public Sub WriteHeader (writer As XmlWriter, messageVersion As MessageVersion)
參數
- messageVersion
- MessageVersion
物件包含與訊息及其交換相關聯之 SOAP 版本的相關資訊。