The XPath object.

At the time of creation, this object compiles the XPath expression, which can be reused multiple times, even for different documents.

Note: This object requires to be disposed explicitly.

Hierarchy (View Summary)

Accessors

Methods

  • Dispose the object.

    It releases the managed resource and unregisters it from FinalizationRegistry. This ensures that the release of the managed resource doesn’t have to wait until the object is garbage collected.

    To avoid resource leaks, explicitly call the Dispose method or use the using declaration to declare the object.

    Returns void

  • XPath selector string.

    Returns string