Click or drag to resize
Result Class
Result object given by a
Query
performed on a database. The typical pattern for using this class is to receive an instance of it as a result of using the
Database
and
Query
class methods that return a result. This class should not be initialised independently. Note that this is a stub class that a driver will extend and complete as required for individual database types. Individual drivers could add additional methods, but this is discouraged to ensure that the API is the same for all database types.
Inheritance Hierarchy

Namespace:  DataTables
Assembly:  DataTables (in DataTables.dll) Version: 1.6.5.0 (1.6.5.0)
Syntax
C#
public abstract class Result

The Result type exposes the following members.

Constructors
  NameDescription
Protected methodResult
Create a new result instance. Typically this should only be done by a
Query
method.
Top
Methods
  NameDescription
Public methodCount
Count the number of rows in the result set.
Public methodDataTable
Get a DataTable of the results
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodFetch
Get the next row in a result set
Public methodFetchAll
Get all rows in the result set
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInsertId
After an INSERT query, get the ID that was inserted.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also