Npgsql API Documentation |

# NpgsqlCommand.Connection Property

[This is preliminary documentation and subject to change.]

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

[Visual Basic]
<Category(Category="Behavior")>
<DefaultValue(Value=null)>
Public Property Connection As NpgsqlConnection
[C#]
[Category(Category="Behavior")]
[DefaultValue(Value=null)]
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