<html dir="LTR">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252" />
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5" />
<title>XmlDatabase.Query Method (String, String, String[])</title>
<xml>
</xml>
<link rel="stylesheet" type="text/css" href="MSDN.css" />
</head>
<body id="bodyID" class="dtBODY">
<div id="nsbanner">
<div id="bannerrow1">
<table class="bannerparthead" cellspacing="0">
<tr id="hdr">
<td class="runninghead">XmlDatabase Documentation</td>
<td class="product">
</td>
</tr>
</table>
</div>
<div id="TitleRow">
<h1 class="dtH1">XmlDatabase.Query�Method�(String, String, String[])</h1>
</div>
</div>
<div id="nstext">
<p> Returns a DataTable of specified fields for all rows on the specified path qualified by the where clause. The where clause is appended to the last element of the path. Qualifiers applied to elements other than the last element must be specified in the path statement itself using xml syntax. </p>
<div class="syntax">public�<a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemDataDataTableClassTopic.htm">DataTable</a>�Query(<br />���<a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemStringClassTopic.htm">string</a>�<i>path</i>,<br />���<a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemStringClassTopic.htm">string</a>�<i>where</i>,<br />���<a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemStringClassTopic.htm">string[]</a>�<i>fieldList</i><br />);</div>
<h4 class="dtH4">Parameters</h4>
<dl>
<dt>
<i>path</i>
</dt>
<dd>The xml path.</dd>
<dt>
<i>where</i>
</dt>
<dd>The where clause.</dd>
<dt>
<i>fieldList</i>
</dt>
<dd>The string array of desired fields.</dd>
</dl>
<h4 class="dtH4">Return Value</h4>
<p>The DataTable. If no rows are returned, the DataTable row count will be 0.</p>
<h4 class="dtH4">Remarks</h4>
<p>Additional exceptions may be thrown by the XmlDocument class.</p>
<h4 class="dtH4">Exceptions</h4>
<div class="tablediv">
<table class="dtTABLE" cellspacing="0">
<tr valign="top">
<th width="50%">Exception Type</th>
<th width="50%">Condition</th>
</tr>
<tr valign="top">
<td width="50%">
<a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemArgumentNullExceptionClassTopic.htm">ArgumentNullException</a>
</td>
<td width="50%">Thrown when an argument is null.</td>
</tr>
</table>
</div>
<h4 class="dtH4">See Also</h4>
<p>
<a href="Clifton.Tools.Xml.XmlDatabase.html">XmlDatabase Class</a> | <a href="Clifton.Tools.Xml.html">Clifton.Tools.Xml Namespace</a> | <a href="Clifton.Tools.Xml.XmlDatabase.Query_overloads.html">XmlDatabase.Query Overload List</a></p>
<object type="application/x-oleobject" classid="clsid:1e2a7bd0-dab9-11d0-b93a-00c04fc99f9e" viewastext="true" style="display: none;">
<param name="Keyword" value="Query method">
</param>
<param name="Keyword" value="Query method, XmlDatabase class">
</param>
<param name="Keyword" value="XmlDatabase.Query method">
</param>
</object>
<hr />
<div id="footer">
<p>
<a>(c) 2005 Marc Clifton All Rights Reserved.</a>
</p>
<p>
</p>
</div>
</div>
</body>
</html>