-
Notifications
You must be signed in to change notification settings - Fork 1.6k
/
DataRowChangeEventHandler.xml
72 lines (66 loc) · 4.4 KB
/
DataRowChangeEventHandler.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<Type Name="DataRowChangeEventHandler" FullName="System.Data.DataRowChangeEventHandler">
<TypeSignature Language="C#" Value="public delegate void DataRowChangeEventHandler(object sender, DataRowChangeEventArgs e);" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed DataRowChangeEventHandler extends System.MulticastDelegate" />
<TypeSignature Language="DocId" Value="T:System.Data.DataRowChangeEventHandler" />
<TypeSignature Language="VB.NET" Value="Public Delegate Sub DataRowChangeEventHandler(sender As Object, e As DataRowChangeEventArgs)" />
<TypeSignature Language="F#" Value="type DataRowChangeEventHandler = delegate of obj * DataRowChangeEventArgs -> unit" />
<TypeSignature Language="C++ CLI" Value="public delegate void DataRowChangeEventHandler(System::Object ^ sender, DataRowChangeEventArgs ^ e);" />
<AssemblyInfo>
<AssemblyName>System.Data</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>netstandard</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.1.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Data.Common</AssemblyName>
<AssemblyVersion>4.2.0.0</AssemblyVersion>
<AssemblyVersion>4.2.1.0</AssemblyVersion>
<AssemblyVersion>4.2.2.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<TypeForwardingChain>
<TypeForwarding From="netstandard" FromVersion="2.1.0.0" To="System.Data.Common" ToVersion="5.0.0.0" FrameworkAlternate="net-5.0" />
<TypeForwarding From="netstandard" FromVersion="2.1.0.0" To="System.Data.Common" ToVersion="6.0.0.0" FrameworkAlternate="net-6.0" />
<TypeForwarding From="netstandard" FromVersion="2.1.0.0" To="System.Data.Common" ToVersion="7.0.0.0" FrameworkAlternate="net-7.0" />
<TypeForwarding From="netstandard" FromVersion="2.1.0.0" To="System.Data.Common" ToVersion="8.0.0.0" FrameworkAlternate="net-8.0" />
<TypeForwarding From="netstandard" FromVersion="2.1.0.0" To="System.Data.Common" ToVersion="9.0.0.0" FrameworkAlternate="net-9.0" />
</TypeForwardingChain>
<Base>
<BaseTypeName>System.Delegate</BaseTypeName>
</Base>
<Parameters>
<Parameter Name="sender" Type="System.Object" />
<Parameter Name="e" Type="System.Data.DataRowChangeEventArgs" />
</Parameters>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Docs>
<param name="sender">The source of the event.</param>
<param name="e">A <see cref="T:System.Data.DataRowChangeEventArgs" /> that contains the event data.</param>
<summary>Represents the method that will handle the <see cref="E:System.Data.DataTable.RowChanging" />, <see cref="E:System.Data.DataTable.RowChanged" />, <see cref="E:System.Data.DataTable.RowDeleting" />, and <see cref="E:System.Data.DataTable.RowDeleted" /> events of a <see cref="T:System.Data.DataTable" />.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
When you create a <xref:System.Data.DataRowChangeEventHandler> 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, until you remove the delegate. For more information about delegates, see [Handling and Raising Events](/dotnet/standard/events/).
## Examples
The following example adds a <xref:System.Data.DataRowChangeEventHandler> and the procedure to handle the event when a row is changed. The procedure prints the action and value of the changed row.
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_ADO.NET/DataWorks Data.DataRowChangeEventHandler/CS/source.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_ADO.NET/DataWorks Data.DataRowChangeEventHandler/VB/source.vb" id="Snippet1":::
]]></format>
</remarks>
<altmember cref="T:System.Data.DataRow" />
<altmember cref="T:System.Data.DataTable" />
<altmember cref="T:System.Data.DataRowChangeEventArgs" />
</Docs>
</Type>