command class : Release() method

Description

Releases unmanaged resources.

Syntax

instance.Release()

Arguments

None.

Return value

None.

Sample code

1:

connection cnn = new connection("Data Source=c:\somedirectory\somedatabase.sqlite3;Version=3;");

2:

cnn.Open();

3:

command cmm = new command("create table sometable (id int, name text);", cnn);

4:

cmm.NonQuery(); // Creates the "sometable".

5:

cmm.Release(); // Disposing inside the implementation is done.

6:

cnn.Close();

7:

cnn.Release();

Notes

If an instance call this method, the instance back to the uninitialized state.

Links for reference

None.

Copyright © Cooker All rights reserved.