Поделиться через


Свойство IDbCommand.CommandType

Indicates or specifies how the CommandText property is interpreted (as text, a stored procedure, etc.).

Пространство имен:  Microsoft.ReportingServices.DataProcessing
Сборки:   Microsoft.ReportingServices.Interfaces (в Microsoft.ReportingServices.Interfaces.dll)
  Microsoft.ReportingServices.SharePoint.UI.WebParts (в Microsoft.ReportingServices.SharePoint.UI.WebParts.dll)

Синтаксис

'Декларация
Property CommandType As CommandType 
    Get 
    Set
'Применение
Dim instance As IDbCommand 
Dim value As CommandType 

value = instance.CommandType

instance.CommandType = value
CommandType CommandType { get; set; }
property CommandType CommandType {
    CommandType get ();
    void set (CommandType value);
}
abstract CommandType : CommandType with get, set
function get CommandType () : CommandType 
function set CommandType (value : CommandType)

Значение свойства

Тип: Microsoft.ReportingServices.DataProcessing.CommandType
One of the CommandType values. The default is Text.

Замечания

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