共用方式為


MessageHeader.WriteHeader 方法

定義

使用 XML 寫入器序列化此標頭。

多載

WriteHeader(XmlDictionaryWriter, MessageVersion)

使用指定的 XML 寫入器序列化此標頭。

WriteHeader(XmlWriter, MessageVersion)

使用指定的 XML 寫入器序列化此標頭。

WriteHeader(XmlDictionaryWriter, MessageVersion)

來源:
MessageHeader.cs
來源:
MessageHeader.cs
來源:
MessageHeader.cs

使用指定的 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)

來源:
MessageHeader.cs
來源:
MessageHeader.cs
來源:
MessageHeader.cs

使用指定的 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)

參數

writer
XmlWriter

用來序列化標頭的 XmlWriter

messageVersion
MessageVersion

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

適用於