XmlReader.XmlSpace XmlReader.XmlSpace XmlReader.XmlSpace XmlReader.XmlSpace Property

定义

当在派生类中被重写时,获取当前的 xml:space 范围。When overridden in a derived class, gets the current xml:space scope.

public:
 virtual property System::Xml::XmlSpace XmlSpace { System::Xml::XmlSpace get(); };
public virtual System.Xml.XmlSpace XmlSpace { get; }
member this.XmlSpace : System.Xml.XmlSpace
Public Overridable ReadOnly Property XmlSpace As XmlSpace

属性值

XmlSpace 值之一。One of the XmlSpace values. 如果不存在任何 xml:space 范围,则该属性默认值为 XmlSpace.NoneIf no xml:space scope exists, this property defaults to XmlSpace.None.

异常

在上一次异步操作完成之前调用了 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."

示例

请参阅XmlSpace(在XmlTextReader类) 使用此属性的示例。See XmlSpace (in the XmlTextReader class) for an example using this property.

适用于

另请参阅