Namespaces and prefixes used in the XPath.
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.
XPath selector string.
StaticcompileCreate a new XPath object.
The XPath selector string.
Optionalnamespaces: NamespaceMapNamespace map for prefixes used in the xpathStr.
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.