IXmlMtomReaderInitializer.SetInput 方法

定义

指定实现此方法的 XML MTOM 读取器的初始化要求。

重载

名称 说明
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

消息的内容类型。 可以是 null 正在读取的文档中存在 MIME 类型。

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

消息的内容类型。 可以是 null 正在读取的文档中存在 MIME 类型。

maxBufferSize
Int32

缓冲区的最大允许大小。

onClose
OnXmlDictionaryReaderClose

事件发生时 onClose 要使用的委托。

适用于