command クラス : Release()メソッド
説明
アンマネージリソースを解放します。
構文
instance.Release()
引数
無し。
返り値
無し。
サンプルコード
| 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(); // It creates the "sometable". |
| 5: | cmm.Release(); // Disposing inside the implementation is done. |
| 6: | cnn.Close(); |
| 7: | cnn.Release(); |
注意
呼び出し元のインスタンスは、初期化されていない状態に戻ります。
参照リンク
無し。


