Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
51 lines (46 sloc) 3.28 KB
<Type Name="SqlRowUpdatingEventHandler" FullName="System.Data.SqlClient.SqlRowUpdatingEventHandler">
<TypeSignature Language="C#" Value="public delegate void SqlRowUpdatingEventHandler(object sender, SqlRowUpdatingEventArgs e);" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed SqlRowUpdatingEventHandler extends System.MulticastDelegate" />
<TypeSignature Language="DocId" Value="T:System.Data.SqlClient.SqlRowUpdatingEventHandler" />
<TypeSignature Language="VB.NET" Value="Public Delegate Sub SqlRowUpdatingEventHandler(sender As Object, e As SqlRowUpdatingEventArgs)" />
<TypeSignature Language="C++ CLI" Value="public delegate void SqlRowUpdatingEventHandler(System::Object ^ sender, SqlRowUpdatingEventArgs ^ e);" />
<TypeSignature Language="F#" Value="type SqlRowUpdatingEventHandler = delegate of obj * SqlRowUpdatingEventArgs -&gt; unit" />
<Parameter Name="sender" Type="System.Object" />
<Parameter Name="e" Type="System.Data.SqlClient.SqlRowUpdatingEventArgs" />
<param name="sender">The source of the event.</param>
<param name="e">The <see cref="T:System.Data.SqlClient.SqlRowUpdatingEventArgs" /> that contains the event data.</param>
<summary>Represents the method that will handle the <see cref="E:System.Data.SqlClient.SqlDataAdapter.RowUpdating" /> event of a <see cref="T:System.Data.SqlClient.SqlDataAdapter" />.</summary>
<format type="text/markdown"><![CDATA[
## Remarks
The handler is not required to perform any action, and your code should avoid generating exceptions or allowing exceptions to propagate to the calling method. Any exceptions that do reach the caller are ignored.
The handler may use the <xref:System.Data.SqlClient.SqlRowUpdatingEventArgs> to influence the processing of the updates. For example, the handler may opt to skip the update of the current row or skip the update of all remaining rows. Note that the rows are updated in the order that they were received from the data source.
When you create a <xref:System.Data.SqlClient.SqlRowUpdatingEventArgs> delegate, you identify the method that will handle the event. To associate the event with your event handler, add an instance of the delegate to the event. The event handler is called whenever the event occurs, unless you remove the delegate. For more information about event handler delegates, see [Handling and Raising Events](~/docs/standard/events/
<related type="Article" href="~/docs/framework/data/adonet/">ADO.NET Overview</related>
You can’t perform that action at this time.