ObjectDataSourceView.Insert(IDictionary) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Performs an insert operation by calling the business object method that is identified by the InsertMethod property using the specified values
collection.
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
- values
- IDictionary
A IDictionary collection of parameters used with the InsertMethod property to perform the insert operation. If there are no parameters associated with the method, pass null
.
The number of rows inserted; otherwise, -1, if the number is not known.
The CanInsert property returns false
.
The default return value is -1, which means that an unknown number of rows were inserted. To return a different value, set the AffectedRows property of the ObjectDataSourceStatusEventArgs object of the Inserted event. The number of affected rows is typically returned by the Insert
method for the business object, and that value is available from the ReturnValue property of the ObjectDataSourceStatusEventArgs object of the Inserted event.
The Insert method calls the ExecuteInsert method, passing the values
collection.
Product | Versions |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: