LinqDataSourceView.Delete(IDictionary, IDictionary) Method
Definition
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 a delete operation.
public:
int Delete(System::Collections::IDictionary ^ keys, System::Collections::IDictionary ^ oldValues);
public int Delete (System.Collections.IDictionary keys, System.Collections.IDictionary oldValues);
override this.Delete : System.Collections.IDictionary * System.Collections.IDictionary -> int
Public Function Delete (keys As IDictionary, oldValues As IDictionary) As Integer
Parameters
- keys
- IDictionary
The row key values for the records to delete.
- oldValues
- IDictionary
The row values that are evaluated to detect data conflicts.
Returns
The number of rows that were deleted from the data source.
Exceptions
The LinqDataSource control cannot establish a connection to the underlying data source.
The CanDelete property is false
.
Remarks
The Delete
method calls the ExecuteDelete(IDictionary, IDictionary) method, passing the keys
and oldValues
parameters.
For information about how to delete data with the LinqDataSource control, see the Delete(IDictionary, IDictionary) method of the LinqDataSource class.
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om