Npgsql API Docs

NpgsqlCommand.ExecuteScalar Method 

Executes the query, and returns the first column of the first row in the result set returned by the query. Extra columns or rows are ignored.

[Visual Basic]
NotOverridable Public Function ExecuteScalar() As Object _
    Implements IDbCommand.ExecuteScalar
[C#]
public object ExecuteScalar();

Return Value

The first column of the first row in the result set, or a null reference if the result set is empty.

Implements

IDbCommand.ExecuteScalar

Remarks

Missing <remarks> documentation for M:Npgsql.NpgsqlCommand.ExecuteScalar

See Also

NpgsqlCommand Class | Npgsql Namespace