Dela via


SqlException.BatchCommand Property

Definition

Gets the BatchCommand 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 BatchCommand object or null

Applies to

See also