共用方式為


SoapHeaderHandling.ReadHeaders 方法

定義

傳回 String,其中包含 SOAP 訊息的 SOAP 標頭內容。

public:
 System::String ^ ReadHeaders(System::Xml::XmlReader ^ reader, System::Xml::Serialization::XmlSerializer ^ serializer, System::Web::Services::Protocols::SoapHeaderCollection ^ headers, cli::array <System::Web::Services::Protocols::SoapHeaderMapping ^> ^ mappings, System::Web::Services::Protocols::SoapHeaderDirection direction, System::String ^ envelopeNS, System::String ^ encodingStyle, bool checkRequiredHeaders);
public string ReadHeaders (System.Xml.XmlReader reader, System.Xml.Serialization.XmlSerializer serializer, System.Web.Services.Protocols.SoapHeaderCollection headers, System.Web.Services.Protocols.SoapHeaderMapping[] mappings, System.Web.Services.Protocols.SoapHeaderDirection direction, string envelopeNS, string encodingStyle, bool checkRequiredHeaders);
member this.ReadHeaders : System.Xml.XmlReader * System.Xml.Serialization.XmlSerializer * System.Web.Services.Protocols.SoapHeaderCollection * System.Web.Services.Protocols.SoapHeaderMapping[] * System.Web.Services.Protocols.SoapHeaderDirection * string * string * bool -> string
Public Function ReadHeaders (reader As XmlReader, serializer As XmlSerializer, headers As SoapHeaderCollection, mappings As SoapHeaderMapping(), direction As SoapHeaderDirection, envelopeNS As String, encodingStyle As String, checkRequiredHeaders As Boolean) As String

參數

reader
XmlReader

XmlReader,用於撰寫標頭。

serializer
XmlSerializer

XmlSerializer,用於讀取標頭。

headers
SoapHeaderCollection

SoapHeaderCollection,包含 SOAP 標頭。

mappings
SoapHeaderMapping[]

SoapHeaderMapping 型別的陣列,其中包含 SOAP 標頭的對應。

direction
SoapHeaderDirection

SoapHeaderDirection 值,表示 SOAP 標頭的方向。

envelopeNS
String

String,其中包含 SOAP 訊息信封的命名空間。

encodingStyle
String

String,其中包含 SOAP 標頭的編碼樣式。

checkRequiredHeaders
Boolean

Boolean,指出是否檢查必要的 SOAP 標頭。

傳回

String,其中包含 SOAP 訊息的 SOAP 標頭內容。

適用於

另請參閱