Udostępnij za pośrednictwem


DataCommand Class

Definition

Provides the ability to build and execute data commands of various types against data sources, and to retrieve read-only results or a command status code.

public ref class DataCommand abstract
[System.Runtime.InteropServices.Guid("E19F79F4-3219-423d-97A4-5A2B8A8F45F3")]
public abstract class DataCommand
[<System.Runtime.InteropServices.Guid("E19F79F4-3219-423d-97A4-5A2B8A8F45F3")>]
type DataCommand = class
Public MustInherit Class DataCommand
Inheritance
DataCommand
Attributes

Constructors

DataCommand()

Class constructor. Instantiates a new instance of the DataCommand class.

Methods

CreateParameter()

Creates a parameter object that can be passed into the DeriveSchema(String, Int32, DataParameter[], Int32), Execute(String, Int32, DataParameter[], Int32) or ExecuteWithoutResults(String, Int32, DataParameter[], Int32)methods on a DataCommandclass instance.

DeriveParameters(String, Int32, Int32)

Derives the parameters that can be specified for a given command.

DeriveSchema(String, Int32, DataParameter[], Int32)

Derives the schema returned from a specified command, indicating the layout of items and blocks in a data reader.

Execute(String, Int32, DataParameter[], Int32)

Executes a specified command, optionally with parameters, and returns read-only results.

ExecuteWithoutResults(String, Int32, DataParameter[], Int32)

Executes a command, optionally with parameters, but does not request results, instead returning an integer indicating the outcome of the call.

Prepare(String, Int32, Int32)

Prepares the specified command on the data source to be executed; the command may then be executed multiple times, with varying parameters.

Applies to