System.Xml.IXmlTextReaderInitializer.SetInput 方法 (Byte[], Int32, Int32, Encoding, XmlDictionaryReaderQuotas, OnXmlDictionaryReaderClose)

方法描述

指定读取缓冲区的 XML 文本读取器的初始化要求。

语法定义(C# System.Xml.IXmlTextReaderInitializer.SetInput 方法 (Byte[], Int32, Int32, Encoding, XmlDictionaryReaderQuotas, OnXmlDictionaryReaderClose) 的用法)

void SetInput(
	byte[] buffer,
	int offset,
	int count,
	Encoding encoding,
	XmlDictionaryReaderQuotas quotas,
	OnXmlDictionaryReaderClose onClose
)

参数/返回值

参数值/返回值 参数类型/返回类型 参数描述/返回描述
buffer System-Byte[] 要从其中读取数据的缓冲区。
offset System-Int32 buffer 中开始读取数据的位置。
count System-Int32 可以从 buffer 中读取的字节数。
encoding System-Text-Encoding 流的字符编码。
quotas System-Xml-XmlDictionaryReaderQuotas 要应用的 XmlDictionaryReaderQuotas。
onClose System-Xml-OnXmlDictionaryReaderClose 读取器关闭时要调用的委托。
返回值 void

提示和注释

System.Xml.IXmlTextReaderInitializer.SetInput 方法 (Byte[], Int32, Int32, Encoding, XmlDictionaryReaderQuotas, OnXmlDictionaryReaderClose)例子


异常

异常 异常描述

命名空间

namespace: System.Xml

程序集: System.Runtime.Serialization(在 System.Runtime.Serialization.dll 中)

版本信息

.NET Framework 受以下版本支持:4、3.5、3.0 .NET Framework Client Profile 受以下版本支持:4、3.5 SP1

适用平台

Windows 7, Windows Vista SP1 或更高版本, Windows XP SP3, Windows Server 2008(不支持服务器核心), Windows Server 2008 R2(支持 SP1 或更高版本的服务器核心), Windows Server 2003 SP2 .NET Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求。