Language

ILSParserExtensions.ParseWithContextAsync Method

Definition

Asynchronously parses an XML fragment using the specified context node and action.

public static System.Threading.Tasks.Task<Org.W3c.Dom.INode?> ParseWithContextAsync(this Org.W3c.Dom.LS.ILSParser self, Org.W3c.Dom.LS.ILSInput? input, Org.W3c.Dom.INode? contextArg, short action);
static member ParseWithContextAsync : Org.W3c.Dom.LS.ILSParser * Org.W3c.Dom.LS.ILSInput * Org.W3c.Dom.INode * int16 -> System.Threading.Tasks.Task<Org.W3c.Dom.INode>

Parameters

self
ILSParser

The parser to use.

input
ILSInput

The XML fragment input source.

contextArg
INode

The node used as the parsing context.

action
Int16

The action to apply to the parsed nodes and context node.

Returns

A task that represents the parse operation and yields the resulting node.

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