Export (0) Print
Expand All

Database.QueryValue Method

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

Namespace:  WebMatrix.Data
Assembly:  WebMatrix.Data (in WebMatrix.Data.dll)

public Object QueryValue(
	string commandText,
	params Object[] args
)

Parameters

commandText
Type: System.String
The SQL query to execute.
args
Type: System.Object[]
(Optional) Parameters to pass to the SQL query.

Return Value

Type: System.Object
The scalar value returned by the SQL query.

  • Medium trust for the immediate caller. This member can be used by partially trusted code.
Show:
© 2014 Microsoft