System.Xml.XmlReaderSettings.Async Property

Gets or sets whether asynchronous System.Xml.XmlReader methods can be used on a particular System.Xml.XmlReader instance.

Syntax

public bool Async { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

You must set this value to true when you create a new System.Xml.XmlReader instance if you want to use asynchronous System.Xml.XmlReader methods on that instance. After the System.Xml.XmlReader instance is created, the XmlReaderSettings.Async property is read-only. The default value of this property is false.

This flag is ignored by the XmlReader.Create(XmlReader, XmlReaderSettings) overload. This means that if you create a new System.Xml.XmlReader based on an existing System.Xml.XmlReader, the async behavior depends on the input System.Xml.XmlReader, and you cannot use the XmlReaderSettings.Async flag to change the async behavior.

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 4.0.0.0
Since: .NET 2.0