Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

XmlReader::Close Method ()

 

When overridden in a derived class, changes the ReadState to Closed.

Namespace:   System.Xml
Assembly:  System.Xml (in System.Xml.dll)

public:
virtual void Close()

Exception Condition
InvalidOperationException

An XmlReader method was called before a previous asynchronous operation finished. In this case, InvalidOperationException is thrown with the message “An asynchronous operation is already in progress.”

This method also releases any resources held during reading. If Close has already been called, no action is performed.

.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show:
© 2017 Microsoft