SqlException.BatchCommand Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the DbBatchCommand instance that generated the error or null
if the exception was not raised from a batch.
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
Property Value
A DbBatchCommand object or null