다음을 통해 공유


IDbCommand.CommandText 속성

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

네임스페이스:  Microsoft.ReportingServices.DataProcessing
어셈블리:   Microsoft.ReportingServices.Interfaces(Microsoft.ReportingServices.Interfaces.dll)
  Microsoft.ReportingServices.SharePoint.UI.WebParts(Microsoft.ReportingServices.SharePoint.UI.WebParts.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.

참고 항목

참조

IDbCommand 인터페이스

Microsoft.ReportingServices.DataProcessing 네임스페이스