XmlReader.CanReadValueChunk XmlReader.CanReadValueChunk XmlReader.CanReadValueChunk XmlReader.CanReadValueChunk Property

定义

获取一个值,该值指示 XmlReader 是否实现 ReadValueChunk(Char[], Int32, Int32) 方法。Gets a value indicating whether the XmlReader implements the ReadValueChunk(Char[], Int32, Int32) method.

public:
 virtual property bool CanReadValueChunk { bool get(); };
public virtual bool CanReadValueChunk { get; }
member this.CanReadValueChunk : bool
Public Overridable ReadOnly Property CanReadValueChunk As Boolean

属性值

如果 XmlReader 实现 ReadValueChunk(Char[], Int32, Int32) 方法,则为 true;否则为 falsetrue if the XmlReader implements the ReadValueChunk(Char[], Int32, Int32) method; otherwise false.

异常

在上一次异步操作完成之前调用了 XmlReader 方法。An XmlReader method was called before a previous asynchronous operation finished. 在此情况下,会引发 InvalidOperationException 并显示消息“异步操作已在进行中。”In this case, InvalidOperationException is thrown with the message "An asynchronous operation is already in progress."

注解

从静态XmlReader Create方法创建的文本分析对象将始终返回trueText parsing XmlReader objects that were created from the static Create method always return true. XmlReader类的所有其他 Microsoft .NET 框架实现, XmlTextReader包括类,返回falseAll other Microsoft .NET Framework implementations of the XmlReader class, including the XmlTextReader class, return false.

如果此属性返回false NotSupportedException ,则在调用ReadValueChunk方法时返回。If this property returns false a NotSupportedException is returned when the ReadValueChunk method is called.

适用于