--- title: "ADO for Visual C++ Syntax Index for COM | 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: - "C++" helpviewer_keywords: - "ADO for Visual C++ syntax [ADO]" - "syntax indexes [ADO], ADO for Visual C++ syntax" ms.assetid: d02b199e-1e52-4cc9-b118-750952ae7f63 author: MightyPen ms.author: genemi --- # ADO for Visual C++ Syntax Index for COM This index is a cross-reference to the ADO Language Reference based on Microsoft Visual C++. If you use the **#import** directive in your application, a header file will be generated that will enable you to use syntax similar to Microsoft Visual Basic. Property names of the form **get_**_PropertyName_ and **put_**_PropertyName_ can be treated as if they were declared simply as *PropertyName*. A property can then be treated like a data member instead of a function. All of the methods, properties, and events are functions that return an **HRESULT**, which you can test to determine if the function executed successfully. Method and property syntax in Visual C++ is listed for the following elements: - [Collections](../../../ado/reference/ado-api/collections-ado-for-visual-c-syntax.md) - [Command object](../../../ado/reference/ado-api/command-ado-for-visual-c-syntax.md) - [Connection object](../../../ado/reference/ado-api/connection-ado-for-visual-c-syntax.md) - [Error object](../../../ado/reference/ado-api/error-ado-for-visual-c-syntax.md) - [Field object](../../../ado/reference/ado-api/field-ado-for-visual-c-syntax.md) - [Parameter object](../../../ado/reference/ado-api/parameter-ado-for-visual-c-syntax.md) - [Record object](../../../ado/reference/ado-api/record-ado-for-visual-c-syntax.md) - [Recordset object](../../../ado/reference/ado-api/recordset-ado-for-visual-c-syntax.md) - [Stream object](../../../ado/reference/ado-api/stream-ado-for-visual-c-syntax.md) ## See Also [ADO for Visual C++ Syntax Index with #import](../../../ado/reference/ado-api/ado-for-visual-c-syntax-index-with-sharpimport.md) [Microsoft ActiveX Data Objects (ADO)](../../../ado/microsoft-activex-data-objects-ado.md)