語言

SqlBatchCommand 類別

定義

SqlBatchCommand 允許在 SqlBatch 中執行多個 SQL 指令。

public ref class SqlBatchCommand
public ref class SqlBatchCommand : System::Data::Common::DbBatchCommand
public class SqlBatchCommand
public class SqlBatchCommand : System.Data.Common.DbBatchCommand
type SqlBatchCommand = class
type SqlBatchCommand = class
    inherit DbBatchCommand
Public Class SqlBatchCommand
Public Class SqlBatchCommand
Inherits DbBatchCommand
繼承
SqlBatchCommand
繼承
SqlBatchCommand

建構函式

名稱 Description
SqlBatchCommand()

初始化一個新的 SqlBatchCommand。

SqlBatchCommand(String, CommandType, IEnumerable<SqlParameter>, SqlCommandColumnEncryptionSetting)

初始化一個新的 SqlBatchCommand。

屬性

名稱 Description
CanCreateParameter

回傳該方法是否 CreateParameter() 已實作。

ColumnEncryptionSetting

目前未實施。 加密設定。 如需詳細資訊,請參閱 Always Encrypted。

CommandBehavior

一個實 CommandBehavior例,指定語句執行與資料檢索的選項。 只有 SchemaOnly 和 KeyInfo 在陳述層級被支持。

CommandText

接收或設定文字指令來對資料來源執行。

CommandType

取得或設定該屬性的 CommandText 解讀方式。

DbParameterCollection

取得物品集合 SqlParameter 。

Parameters

取得 SqlParameterCollection。

RecordsAffected

執行該特定 SqlBatchCommand。

方法

名稱 Description
CreateParameter()

建立一個新的物件實例 SqlParameter 。

適用於