System.Data.IDbCommand.CommandText Property

Gets or sets the text command to run against the data source.

Syntax

public string CommandText { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

When the IDbCommand.CommandType property is set to StoredProcedure, set the IDbCommand.CommandText property to the name of the stored procedure. The user may be required to use escape character syntax if the stored procedure name contains any special characters. The command will call this stored procedure when you call one of the Execute methods.

Requirements

Namespace: System.Data
Assembly: System.Data (in System.Data.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0