DataSourceOperation Enumeration
Collapse the table of content
Expand the table of content

DataSourceOperation Enumeration


Specifies a data operation performed by a data source control.

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

public enum DataSourceOperation

Member nameDescription

The operation deletes records from a data source.


The operation inserts one or more records into a data source.


The operation retrieves records from a data source.


The operation retrieves the total number of records for a query from the data source.


The operation updates records in a data source.

The DataSourceOperation enumeration represents the actions that a data source control can perform on its underlying data. Data source controls such as SqlDataSource and ObjectDataSource use these enumeration values to track the type of operation being performed.

The five major data source operations are represented by the DataSourceOperation enumeration. The Select and SelectCount values indicate operations that retrieve data from an underlying data source, while the Delete, Insert, and Update values indicate operations that modify data.

.NET Framework
Available since 2.0
Return to top
© 2015 Microsoft