共用方式為


SqlException.BatchCommand 屬性

定義

取得 BatchCommand 實例,如果例外狀況不是從批次引發,則會產生錯誤或 Null。

public:
 property Microsoft::Data::SqlClient::SqlBatchCommand ^ BatchCommand { Microsoft::Data::SqlClient::SqlBatchCommand ^ get(); };
public Microsoft.Data.SqlClient.SqlBatchCommand BatchCommand { get; }
member this.BatchCommand : Microsoft.Data.SqlClient.SqlBatchCommand
Public ReadOnly Property BatchCommand As SqlBatchCommand

屬性值

BatchCommand 物件或 Null

適用於

另請參閱