共用方式為


CommandText 屬性

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

命名空間:  Microsoft.ReportingServices.DataProcessing
組件:   Microsoft.ReportingServices.SharePoint.UI.WebParts (在 Microsoft.ReportingServices.SharePoint.UI.WebParts.dll 中)
  Microsoft.ReportingServices.Interfaces (在 Microsoft.ReportingServices.Interfaces.dll 中)

語法

'宣告
Property CommandText As String
    Get
    Set
'用途
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)

屬性值

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

備註

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.