| title | Collections (Visual C++ Syntax Index with #import) | Microsoft Docs | ||||
|---|---|---|---|---|---|
| ms.prod | sql | ||||
| ms.prod_service | connectivity | ||||
| ms.technology | connectivity | ||||
| ms.custom | |||||
| ms.date | 01/19/2017 | ||||
| ms.reviewer | |||||
| ms.topic | conceptual | ||||
| apitype | COM | ||||
| dev_langs |
|
||||
| helpviewer_keywords |
|
||||
| ms.assetid | 36fbca8e-1884-44b5-806b-d15e30f42fe6 | ||||
| author | MightyPen | ||||
| ms.author | genemi |
It is useful to know that collections inherit certain common methods and properties.
All collections inherit the Count property and Refresh method, and all collections add the Item property. The Errors collection adds the Clear method. The Parameters collection inherits the Append and Delete methods, while the Fields collection adds the Append, Delete, and Update methods.
HRESULT Refresh( );
long GetCount( ); __declspec(property(get=GetCount)) long Count;
PropertyPtr GetItem( const _variant_t & Index ); __declspec(property(get=GetItem)) PropertyPtr Item[];
HRESULT Clear( );
HRESULT Refresh( );
long GetCount( ); __declspec(property(get=GetCount)) long Count;
PropertyPtr GetItem( const _variant_t & Index ); __declspec(property(get=GetItem)) PropertyPtr Item[];
HRESULT Append( IDispatch * Object );
HRESULT Delete( const _variant_t & Index );
HRESULT Refresh( );
long GetCount( ); __declspec(property(get=GetCount)) long Count;
PropertyPtr GetItem( const _variant_t & Index ); __declspec(property(get=GetItem)) PropertyPtr Item[];
HRESULT Append( _bstr_t Name, enum DataTypeEnum Type, long DefinedSize, enum FieldAttributeEnum Attrib, const _variant_t & FieldValue = vtMissing );
HRESULT Delete( const _variant_t & Index );
HRESULT Refresh( );
HRESULT Update( );
long GetCount( ); __declspec(property(get=GetCount)) long Count;
PropertyPtr GetItem( const _variant_t & Index ); __declspec(property(get=GetItem)) PropertyPtr Item[];
Errors Collection (ADO)
Fields Collection (ADO)
Parameters Collection (ADO)
Properties Collection (ADO)