## DbCommand::set_Connection method


Gets database connecton associated with command.

```cpp
virtual void System::Data::Common::DbCommand::set_Connection(SharedPtr<System::Data::Common::DbConnection> value)
```


| Parameter | Type | Description |
| --- | --- | --- |
| value | SharedPtr\<System::Data::Common::DbConnection\> | Database connection. |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [DbConnection](../../dbconnection/)
* Class [DbCommand](../)
* Namespace [System::Data::Common](../../)
* Library [Aspose.PDF for C++](../../../)
