Reason (XPathError property): Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Created page with " <span class="pageSubtitle"><section begin=dpl_desc/>XPathErrorReason enumeration value indicating the type of error causing the exception<section end=dpl_desc/></span> [[Categor...")
 
m (Redirected page to XPathError class#Reason property)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
#REDIRECT [[XPathError class#Reason property|Reason property]]


<span class="pageSubtitle"><section begin=dpl_desc/>XPathErrorReason enumeration value indicating the type of error causing the exception<section end=dpl_desc/></span>
[[Category:XPathError methods|Reason property]]
[[Category:XPathError methods|Reason property]]
<p>
<var>Reason</var> is a member of the <var>[[XPathError class|XPathError]]</var> class.
</p>
==Syntax==
<p class="syntax">%reason = %XPathErr:Reason
</p>
===Syntax terms===
<table class="syntaxTable">
<tr><th>%reason</th>
<td>This <var>XPathErrorReason</var> enumeration value describes the reason for the translation failure.
</td></tr>
<tr><th>%XPathErr</th>
<td>An <var>XPathError</var> object.
</td></tr></table>
==Usage Notes==
<ul>
<li>An <var>XPathErrorReason</var> enumeration may have one of the following values:
<dl>
<dt>SyntaxError
<dd>A violation of the syntax of an XPath expression.
<dt>EmptyResult
<dd>There are no nodes matched by the XPath expression, and the method
requires at least one matching node.
</dl>
<li>As with all enumerations, you use
the <code>ToString</code> method to convert an enumeration value to a
character string whose value is the name of the enumeration value.
</ul>

Latest revision as of 16:09, 11 May 2011