Language

Xml.ParseAsync Method

Definition

Overloads

ParseAsync(Reader, IContentHandler)

Runs Parse(Reader, IContentHandler) asynchronously.

public static System.Threading.Tasks.Task ParseAsync(Java.IO.Reader? in, Org.Xml.Sax.IContentHandler? contentHandler);
static member ParseAsync : Java.IO.Reader * Org.Xml.Sax.IContentHandler -> System.Threading.Tasks.Task

Parameters

in
Reader

The reader that supplies the XML text.

contentHandler
IContentHandler

The SAX handler that receives parser events.

Returns

A task that represents the asynchronous call to Parse.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

ParseAsync(String, IContentHandler)

Runs Parse(String, IContentHandler) asynchronously.

public static System.Threading.Tasks.Task ParseAsync(string? xml, Org.Xml.Sax.IContentHandler? contentHandler);
static member ParseAsync : string * Org.Xml.Sax.IContentHandler -> System.Threading.Tasks.Task

Parameters

xml
String

The XML text to parse.

contentHandler
IContentHandler

The SAX handler that receives parser events.

Returns

A task that represents the asynchronous call to Parse.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

ParseAsync(Stream, Xml+Encoding, IContentHandler)

public static System.Threading.Tasks.Task ParseAsync(System.IO.Stream? in, Android.Util.Xml.Encoding? encoding, Org.Xml.Sax.IContentHandler? contentHandler);
static member ParseAsync : System.IO.Stream * Android.Util.Xml.Encoding * Org.Xml.Sax.IContentHandler -> System.Threading.Tasks.Task

Parameters

in
Stream

The stream that contains the XML bytes.

encoding
Xml.Encoding

The encoding constant used to configure the input source.

contentHandler
IContentHandler

The SAX handler that receives parser events.

Returns

A task that represents the asynchronous call to Parse.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to