DataObjectMethodType Enumeration
Identifies the type of data operation performed by a method, as specified by the DataObjectMethodAttribute applied to the method.
Assembly: System (in System.dll)
| Member name | Description | |
|---|---|---|
![]() | Fill | Indicates that a method is used for a data operation that fills a DataSet object. |
![]() | Select | Indicates that a method is used for a data operation that retrieves data. |
![]() | Update | Indicates that a method is used for a data operation that updates data. |
![]() | Insert | Indicates that a method is used for a data operation that inserts data. |
![]() | Delete | Indicates that a method is used for a data operation that deletes data. |
The following code example demonstrates how you can apply the DataObjectMethodAttribute to a publicly exposed method and identify the type of data operation it performs as well as whether it is the type's default data method. In this example the NorthwindEmployee type exposes two different data methods: one to retrieve a set of data named GetAllEmployees, and one to delete data named DeleteEmployeeByID. The DataObjectMethodAttribute is applied to both methods.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
