The Query type exposes the following members.

Constructors

  Name Description
Public method Query
Initializes a new instance of the Query class.

Methods

  Name Description
Public method AssignFrom
Assigns (copies) properties from another Query to the current object.

Properties

  Name Description
Public property CommandText
Gets or sets the command text that is executed to obtain the data. The interpretation of this text depends on the query type specified by the CommandType property.
Public property CommandType
Gets or sets the type of query assigned to the CommandText property on the current query.
Public property DataSource
Gets or sets the DataSource object against which to execute the current query.
Public property Parameters
Gets the collection of QueryParameter objects that are passed to the data source as part of the current query.
Public property Timeout
Gets or sets the number of seconds to allow the query to run before timing out. Must be nonnegative. If omitted or zero, the query should not time out.

See Also