IXmlMtomReaderInitializer.SetInput 方法

定義

規定實作此方法的 XML MTOM 讀取器初始化要求。

多載

名稱 Description
SetInput(Stream, Encoding[], String, XmlDictionaryReaderQuotas, Int32, OnXmlDictionaryReaderClose)

規定讀取串流的 XML MTOM 讀取器初始化要求。

SetInput(Byte[], Int32, Int32, Encoding[], String, XmlDictionaryReaderQuotas, Int32, OnXmlDictionaryReaderClose)

規定讀取緩衝區的 XML MTOM 讀取器初始化要求。

SetInput(Stream, Encoding[], String, XmlDictionaryReaderQuotas, Int32, OnXmlDictionaryReaderClose)

規定讀取串流的 XML MTOM 讀取器初始化要求。

public:
 void SetInput(System::IO::Stream ^ stream, cli::array <System::Text::Encoding ^> ^ encodings, System::String ^ contentType, System::Xml::XmlDictionaryReaderQuotas ^ quotas, int maxBufferSize, System::Xml::OnXmlDictionaryReaderClose ^ onClose);
public void SetInput(System.IO.Stream stream, System.Text.Encoding[] encodings, string contentType, System.Xml.XmlDictionaryReaderQuotas quotas, int maxBufferSize, System.Xml.OnXmlDictionaryReaderClose onClose);
abstract member SetInput : System.IO.Stream * System.Text.Encoding[] * string * System.Xml.XmlDictionaryReaderQuotas * int * System.Xml.OnXmlDictionaryReaderClose -> unit
Public Sub SetInput (stream As Stream, encodings As Encoding(), contentType As String, quotas As XmlDictionaryReaderQuotas, maxBufferSize As Integer, onClose As OnXmlDictionaryReaderClose)

參數

stream
Stream

閱讀的溪流。

encodings
Encoding[]

串流可能的字元編碼。

contentType
String

訊息的內容類型。 如果正在閱讀的文件中包含 MIME 類型,則可能存在 null

maxBufferSize
Int32

緩衝區的最大允許大小。

onClose
OnXmlDictionaryReaderClose

當事件 onClose 發生時,代表會使用。

適用於

SetInput(Byte[], Int32, Int32, Encoding[], String, XmlDictionaryReaderQuotas, Int32, OnXmlDictionaryReaderClose)

規定讀取緩衝區的 XML MTOM 讀取器初始化要求。

public:
 void SetInput(cli::array <System::Byte> ^ buffer, int offset, int count, cli::array <System::Text::Encoding ^> ^ encodings, System::String ^ contentType, System::Xml::XmlDictionaryReaderQuotas ^ quotas, int maxBufferSize, System::Xml::OnXmlDictionaryReaderClose ^ onClose);
public void SetInput(byte[] buffer, int offset, int count, System.Text.Encoding[] encodings, string contentType, System.Xml.XmlDictionaryReaderQuotas quotas, int maxBufferSize, System.Xml.OnXmlDictionaryReaderClose onClose);
abstract member SetInput : byte[] * int * int * System.Text.Encoding[] * string * System.Xml.XmlDictionaryReaderQuotas * int * System.Xml.OnXmlDictionaryReaderClose -> unit
Public Sub SetInput (buffer As Byte(), offset As Integer, count As Integer, encodings As Encoding(), contentType As String, quotas As XmlDictionaryReaderQuotas, maxBufferSize As Integer, onClose As OnXmlDictionaryReaderClose)

參數

buffer
Byte[]

是閱讀的緩衝區。

offset
Int32

讀取 的起始位置 buffer

count
Int32

可從 讀取 buffer的位元組數。

encodings
Encoding[]

輸入的可能字元編碼。

contentType
String

訊息的內容類型。 如果正在閱讀的文件中包含 MIME 類型,則可能存在 null

maxBufferSize
Int32

緩衝區的最大允許大小。

onClose
OnXmlDictionaryReaderClose

當事件 onClose 發生時,代表會使用。

適用於