IXmlMtomReaderInitializer.SetInput 方法
定义
指定实现此方法的 XML MTOM 读取器的初始化需求。Specifies initialization requirements for XML MTOM readers that implement this method.
重载
| SetInput(Stream, Encoding[], String, XmlDictionaryReaderQuotas, Int32, OnXmlDictionaryReaderClose) |
指定读取流的 XML MTOM 读取器的初始化需求。Specifies initialization requirements for XML MTOM readers that read a stream. |
| SetInput(Byte[], Int32, Int32, Encoding[], String, XmlDictionaryReaderQuotas, Int32, OnXmlDictionaryReaderClose) |
指定读取缓冲区的 XML MTOM 读取器的初始化需求。Specifies initialization requirements for XML MTOM readers that read a buffer. |
SetInput(Stream, Encoding[], String, XmlDictionaryReaderQuotas, Int32, OnXmlDictionaryReaderClose)
指定读取流的 XML MTOM 读取器的初始化需求。Specifies initialization requirements for XML MTOM readers that read a stream.
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
要从其中读取数据的流。The stream from which to read.
- encodings
- Encoding[]
流的可能的字符编码。The possible character encodings of the stream.
- contentType
- String
消息的内容类型。The Content-Type of the message. 如果 MIME 类型存在于读取的文档中,则可以为 null。Can be null if the MIME type is present in the document being read.
- quotas
- XmlDictionaryReaderQuotas
要应用于读取器的 XmlDictionaryReaderQuotas。The XmlDictionaryReaderQuotas to apply to the reader.
- maxBufferSize
- Int32
允许的缓冲区最大大小。The maximum allowed size of the buffer.
- onClose
- OnXmlDictionaryReaderClose
发生 onClose 事件时要使用的委托。The delegate to use when an onClose event happens.
适用于
SetInput(Byte[], Int32, Int32, Encoding[], String, XmlDictionaryReaderQuotas, Int32, OnXmlDictionaryReaderClose)
指定读取缓冲区的 XML MTOM 读取器的初始化需求。Specifies initialization requirements for XML MTOM readers that read a buffer.
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[]
要从其中读取数据的缓冲区。The buffer from which to read.
- offset
- Int32
buffer 中开始读取数据的位置。The starting position from which to read in buffer.
- count
- Int32
可以从 buffer 中读取的字节数。The number of bytes that can be read from buffer.
- encodings
- Encoding[]
输入的可能的字符编码。The possible character encodings of the input.
- contentType
- String
消息的内容类型。The Content-Type of the message. 如果 MIME 类型存在于读取的文档中,则可以为 null。Can be null if the MIME type is present in the document being read.
- quotas
- XmlDictionaryReaderQuotas
要应用于读取器的 XmlDictionaryReaderQuotas。The XmlDictionaryReaderQuotas to apply to the reader.
- maxBufferSize
- Int32
允许的缓冲区最大大小。The maximum allowed size of the buffer.
- onClose
- OnXmlDictionaryReaderClose
发生 onClose 事件时要使用的委托。The delegate to use when an onClose event happens.