<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.Update Method (String, 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.Update�Method�(String, String, String, String)</h1>
</div>
</div>
<div id="nstext">
<p> Update a single field in all records in the specified path matching the xml 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/frlrfSystemInt32ClassTopic.htm">int</a>�Update(<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>field</i>,<br />���<a href="ms-help://MS.NETFrameworkSDKv1.1/cpref/html/frlrfSystemStringClassTopic.htm">string</a>�<i>val</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 path qualifier.</dd>
<dt>
<i>field</i>
</dt>
<dd>The field name to update.</dd>
<dt>
<i>val</i>
</dt>
<dd>The new value.</dd>
</dl>
<h4 class="dtH4">Return Value</h4>
<p>The number of records affected.</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.Update_overloads.html">XmlDatabase.Update 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="Update method">
</param>
<param name="Keyword" value="Update method, XmlDatabase class">
</param>
<param name="Keyword" value="XmlDatabase.Update method">
</param>
</object>
<hr />
<div id="footer">
<p>
<a>(c) 2005 Marc Clifton All Rights Reserved.</a>
</p>
<p>
</p>
</div>
</div>
</body>
</html>