Compartilhar via


Propriedade do RDL CommandText

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

Namespace:  Microsoft.ReportingServices.DataProcessing
Assemblies:   Microsoft.ReportingServices.SharePoint.UI.WebParts (em Microsoft.ReportingServices.SharePoint.UI.WebParts.dll)
  Microsoft.ReportingServices.Interfaces (em Microsoft.ReportingServices.Interfaces.dll)

Sintaxe

'Declaração
Property CommandText As String
    Get
    Set
'Uso
Dim instance As IDbCommand
Dim value As String

value = instance.CommandText

instance.CommandText = value
string CommandText { get; set; }
property String^ CommandText {
    String^ get ();
    void set (String^ value);
}
abstract CommandText : string with get, set
function get CommandText () : String
function set CommandText (value : String)

Valor da propriedade

Tipo: System. . :: . .String
The text command to execute. The default value is an empty string ("").

Comentários

When the CommandType property is set to StoredProcedure, set the 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.