CloseInput Property

XmlReaderSettings.CloseInput Property

Gets or sets a value indicating whether the underlying stream or TextReader should be closed when the reader is closed.

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

public bool CloseInput { get; set; }
/** @property */
public boolean get_CloseInput ()

/** @property */
public void set_CloseInput (boolean value)

public function get CloseInput () : boolean

public function set CloseInput (value : boolean)

Not applicable.

Property Value

true to close the underlying stream or TextReader when the reader is closed; otherwise false. The default is false.

This setting is used when a stream or TextReader is passed to the Create method. If a stream is created by the reader for its own processing, such as when the reader is created with a URI or when it opens an external document type definition, it is always closed when the reader is closed.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

.NET Compact Framework

Supported in: 2.0

XNA Framework

Supported in: 1.0

Community Additions

ADD
Show:
© 2016 Microsoft