NET Caching Library Help
ExecuteScalar(String,Dictionary<String,Object>) Method




KellermanSoftware.NetCachingLibrary.DatabaseProviders Namespace > BaseDatabaseProvider Class > ExecuteScalar Method : ExecuteScalar(String,Dictionary<String,Object>) Method
The SQL text to execute
Parameters
Execute the passed query and return the first column of the first row
Syntax
'Declaration
 
Public Overloads Overridable Function ExecuteScalar( _
   ByVal sql As System.String, _
   ByVal parameters As System.Collections.Generic.Dictionary(Of String,Object) _
) As System.Object
'Usage
 
Dim instance As BaseDatabaseProvider
Dim sql As System.String
Dim parameters As System.Collections.Generic.Dictionary(Of String,Object)
Dim value As System.Object
 
value = instance.ExecuteScalar(sql, parameters)
public virtual System.object ExecuteScalar( 
   System.string sql,
   System.Collections.Generic.Dictionary<string,object> parameters
)
public: virtual System.Object* ExecuteScalar( 
   System.string* sql,
   System.Collections.Generic.Dictionary<string*,Object*>* parameters
) 
public:
virtual System.Object^ ExecuteScalar( 
   System.String^ sql,
   System.Collections.Generic.Dictionary<String^,Object^>^ parameters
) 

Parameters

sql
The SQL text to execute
parameters
Parameters

Return Value

First column of first row
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

BaseDatabaseProvider Class
BaseDatabaseProvider Members
Overload List