--- title: "Levels Collection (ADO MD) | 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" f1_keywords: - "Levels" - "Hierarchy::Levels" helpviewer_keywords: - "Levels collection [ADO MD]" ms.assetid: fed8684a-b428-4ee4-8f8d-928abe4ad9ad author: MightyPen ms.author: genemi --- # Levels Collection (ADO MD) Contains the [Level](../../../ado/reference/ado-md-api/level-object-ado-md.md) objects that make up a hierarchy. ## Remarks **Levels** is a standard ADO collection. By using the properties and methods of a collection, you can do the following: - Obtain the number of objects in the collection with the [Count](../../../ado/reference/ado-api/count-property-ado.md) property. - Return an object from the collection with the default [Item](../../../ado/reference/ado-api/item-property-ado.md) property. - Update the objects in the collection from the provider with the [Refresh](../../../ado/reference/ado-api/refresh-method-ado.md) method. This section contains the following topic. - [Properties, Methods, and Events](../../../ado/reference/ado-md-api/levels-collection-properties-methods-and-events.md) ## See Also [Catalog Example (VB)](../../../ado/reference/ado-md-api/catalog-example-vb.md) [Hierarchy Object (ADO MD)](../../../ado/reference/ado-md-api/hierarchy-object-ado-md.md) [Level Object (ADO MD)](../../../ado/reference/ado-md-api/level-object-ado-md.md)