DbException.BatchCommand 屬性

定義

如果執行 時DbException拋出此 DbBatch ,則會參考觸發異常的具體單位DbBatchCommand

public:
 property System::Data::Common::DbBatchCommand ^ BatchCommand { System::Data::Common::DbBatchCommand ^ get(); };
public System.Data.Common.DbBatchCommand? BatchCommand { get; }
member this.BatchCommand : System.Data.Common.DbBatchCommand
Public ReadOnly Property BatchCommand As DbBatchCommand

屬性值

觸發異常的具體 DbBatchCommand 原因。

備註

若執行 時未拋出此值DbException,則包含 nullDbBatch

適用於