## DbCommand::get_Connection method


Gets database connecton associated with command.

```cpp
virtual SharedPtr<System::Data::Common::DbConnection> System::Data::Common::DbCommand::get_Connection() const
```


### ReturnValue

Database connection.

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [DbConnection](../../dbconnection/)
* Class [DbCommand](../)
* Namespace [System::Data::Common](../../)
* Library [Aspose.PDF for C++](../../../)
