Export (0) Print
Expand All

DataSourceView.Insert Method

Performs an asynchronous insert operation on the list of data that the DataSourceView object represents.

Namespace: System.Web.UI
Assembly: System.Web (in system.web.dll)

public virtual void Insert (
	IDictionary values,
	DataSourceViewOperationCallback callback
)
public void Insert (
	IDictionary values, 
	DataSourceViewOperationCallback callback
)
public function Insert (
	values : IDictionary, 
	callback : DataSourceViewOperationCallback
)
Not applicable.

Parameters

values

An IDictionary of name/value pairs used during an insert operation.

callback

A DataSourceViewOperationCallback delegate that is used to notify a data-bound control when the asynchronous operation is complete.

Exception typeCondition

ArgumentNullException

The DataSourceViewOperationCallback supplied is a null reference (Nothing in Visual Basic).

The Insert method is the asynchronous data insertion interface for all data source view objects. The Insert method calls the ExecuteInsert method using any values supplied. The callback parameter is a delegate that a data-bound control passes to the data source view, which is used to notify the data-bound control when the ExecuteInsert operation has completed. The method uses the parameters of the DataSourceViewOperationCallback delegate to return the number of affected records and any Exception exception that is thrown by the ExecuteInsert method call.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft