Database.QueryValue(String, Object[]) Database.QueryValue(String, Object[]) Database.QueryValue(String, Object[]) Method

Definition

Executes a SQL query that returns a single scalar value as the result.

public dynamic QueryValue (string commandText, params object[] args);
member this.QueryValue : string * obj[] -> obj
Public Function QueryValue (commandText As String, ParamArray args As Object()) As Object
Parameters
commandText
String String String

The SQL query to execute.

args
Object[]

(Optional) Parameters to pass to the SQL query.

Returns

The scalar value returned by the SQL query.

Applies to