Aracılığıyla paylaş


CRecordset::Close

Recordset'i kapatır.

virtual void Close( );

Notlar

odbc hstmt ve tüm belleği recordset için ayrılan framework ayırmanın.Genellikle arama sonra Kapat, ile ayrılan, C++ recordset nesnesini silmek Yeni.

Arayabileceğiniz açık bu süre sonunda yeniden arama Kapat.Bu, kayıt kümesi nesnesini yeniden kullanmanıza olanak sağlar.Alternatif çağırmaktır Requery.

Örnek

// Construct a snapshot object
CCustomer rsCustSet(NULL);

if(!rsCustSet.Open())
   return;

// Use the snapshot ...

// Close the snapshot
rsCustSet.Close();

// Destructor is called when the function exits

Gereksinimler

Başlık: afxdb.h

Ayrıca bkz.

Başvuru

CRecordset sınıfı

Hiyerarşi grafik

CRecordset::CRecordset

CRecordset::Open

CRecordset::Requery