Redigera

Dela via


LinqDataSourceView.Insert(IDictionary) Method

Definition

Performs an insert operation.

public:
 int Insert(System::Collections::IDictionary ^ values);
public int Insert (System.Collections.IDictionary values);
override this.Insert : System.Collections.IDictionary -> int
Public Function Insert (values As IDictionary) As Integer

Parameters

values
IDictionary

A dictionary that specifies the data to insert.

Returns

The number of rows that were inserted into the data source.

Exceptions

The LinqDataSource control cannot create the data classes.

The CanInsert property is false.

Remarks

The Insert method calls the ExecuteInsert(IDictionary) method, passing the values parameter.

For information about how to insert data through the LinqDataSource control, see the Insert(IDictionary) method of the LinqDataSource class.

Applies to

See also