Share via


Close Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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

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

Syntax

'Declaration
Public Overridable Sub Close
public virtual void Close()
public:
virtual void Close()
abstract Close : unit -> unit 
override Close : unit -> unit 
public function Close()

Remarks

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

.NET Framework Security

See Also

Reference

XmlReader Class

System.Xml Namespace