Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
DataObjectMethodType Enumeration
Collapse the table of content
Expand the table of content

DataObjectMethodType Enumeration

Identifies the type of data operation performed by a method, as specified by the DataObjectMethodAttribute applied to the method.

Namespace:  System.ComponentModel
Assembly:  System (in System.dll)

type DataObjectMethodType

Member nameDescription
Supported by the XNA FrameworkDeleteIndicates that a method is used for a data operation that deletes data.
Supported by the XNA FrameworkFillIndicates that a method is used for a data operation that fills a DataSet object.
Supported by the XNA FrameworkInsertIndicates that a method is used for a data operation that inserts data.
Supported by the XNA FrameworkSelectIndicates that a method is used for a data operation that retrieves data.
Supported by the XNA FrameworkUpdateIndicates that a method is used for a data operation that updates 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.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

XNA Framework

Supported in: 3.0, 2.0, 1.0
Show:
© 2015 Microsoft