DataSource.ExecuteDictionary Method

System.Data.Generic

DataSourceExecuteDictionary Method
Executes the SQL statement and returns a dictionary of the first row. Keys in the dictionary are field names and values associated.

Namespace: System.Data.Generic
Assembly: System.Data.Generic (in System.Data.Generic.dll) Version: 1.9.5473.30542 (1.9.5473.2392)
Syntax
public Dictionary<string, Object> ExecuteDictionary(
	string SQL
)
Public Function ExecuteDictionary ( 
	SQL As String
) As Dictionary(Of String, Object)
public:
Dictionary<String^, Object^>^ ExecuteDictionary(
	String^ SQL
)
member ExecuteDictionary : 
        SQL : string -> Dictionary<string, Object> 

Parameters

SQL
Type: SystemString
SQL statement to execute.

Return Value

Type: DictionaryString, Object
Dictionary class.
Exceptions
ExceptionCondition
ArgumentNullExceptionIn case the SQL is null.
SqlExceptionIn case the underlying connection cause an exception.
Remarks