Database.QuerySingle Method
Executes a SQL query that returns a single row as the result.
Namespace: WebMatrix.Data
Assembly: WebMatrix.Data (in WebMatrix.Data.dll)
Syntax
'Declaration
Public Function QuerySingle ( _
commandText As String, _
ParamArray args As Object() _
) As Object
'Usage
Dim instance As Database
Dim commandText As String
Dim args As Object()
Dim returnValue As Object
returnValue = instance.QuerySingle(commandText, _
args)
public Object QuerySingle(
string commandText,
params Object[] args
)
public:
Object^ QuerySingle(
String^ commandText,
... array<Object^>^ args
)
member QuerySingle :
commandText:string *
args:Object[] -> Object
public function QuerySingle(
commandText : String,
... args : Object[]
) : Object
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 single row returned by the SQL query.