Npgsql Api Docs |

# NpgsqlCommand.Connection Property

Gets or sets the NpgsqlConnection used by this instance of the NpgsqlCommand.

[Visual Basic]
Overloads Public Property Connection As NpgsqlConnection
[C#]
new public NpgsqlConnection Connection {get; set;}

#### Property Value

The connection to a data source. The default value is a null reference.

#### See Also

NpgsqlCommand Class | Npgsql Namespace