-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
DataSourceViewOperationCallback.xml
41 lines (39 loc) · 3.2 KB
/
DataSourceViewOperationCallback.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
<Type Name="DataSourceViewOperationCallback" FullName="System.Web.UI.DataSourceViewOperationCallback">
<TypeSignature Language="C#" Value="public delegate bool DataSourceViewOperationCallback(int affectedRecords, Exception ex);" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed DataSourceViewOperationCallback extends System.MulticastDelegate" />
<TypeSignature Language="DocId" Value="T:System.Web.UI.DataSourceViewOperationCallback" />
<TypeSignature Language="VB.NET" Value="Public Delegate Function DataSourceViewOperationCallback(affectedRecords As Integer, ex As Exception) As Boolean " />
<TypeSignature Language="F#" Value="type DataSourceViewOperationCallback = delegate of int * Exception -> bool" />
<TypeSignature Language="C++ CLI" Value="public delegate bool DataSourceViewOperationCallback(int affectedRecords, Exception ^ ex);" />
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Delegate</BaseTypeName>
</Base>
<Parameters>
<Parameter Name="affectedRecords" Type="System.Int32" />
<Parameter Name="ex" Type="System.Exception" />
</Parameters>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<param name="affectedRecords">The number of records that the data operation affected.</param>
<param name="ex">An <see cref="T:System.Exception" />, if one is thrown by the data operation during processing.</param>
<summary>Represents the asynchronous callback method that a data-bound control supplies to a data source view for asynchronous insert, update, or delete data operations.</summary>
<returns>A value indicating whether any exceptions thrown during the data operation were handled.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
By default, ASP.NET Web page and control execution is synchronous. However, data source controls can be extended to support asynchronous data retrieval and data operations. The <xref:System.Web.UI.DataSourceView> object supports the <xref:System.Web.UI.DataSourceView.Insert%2A>, <xref:System.Web.UI.DataSourceView.Update%2A>, and <xref:System.Web.UI.DataSourceView.Delete%2A> methods for asynchronous data processing. The <xref:System.Web.UI.DataSourceViewOperationCallback> delegate is passed to the data source view by a data-bound control, so that the view can call this delegate when asynchronous processing is complete and notify the data-bound control of the operation's outcome.
]]></format>
</remarks>
<altmember cref="M:System.Web.UI.DataSourceView.Insert(System.Collections.IDictionary,System.Web.UI.DataSourceViewOperationCallback)" />
<altmember cref="M:System.Web.UI.DataSourceView.Update(System.Collections.IDictionary,System.Collections.IDictionary,System.Collections.IDictionary,System.Web.UI.DataSourceViewOperationCallback)" />
<altmember cref="M:System.Web.UI.DataSourceView.Delete(System.Collections.IDictionary,System.Collections.IDictionary,System.Web.UI.DataSourceViewOperationCallback)" />
<altmember cref="T:System.Web.UI.DataSourceViewSelectCallback" />
</Docs>
</Type>