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)

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, ObjectDictionary class.

Exception | Condition |
---|---|
ArgumentNullException | In case the SQL is null. |
SqlException | In case the underlying connection cause an exception. |

