--- title: "CubeDefs 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: - "CubeDefs" - "Catalog::CubeDefs" helpviewer_keywords: - "CubeDefs collection [ADO MD]" ms.assetid: c79a5e36-71fd-44c4-948d-d6a7a89bb3b5 author: MightyPen ms.author: genemi --- # CubeDefs Collection (ADO MD) Contains the [CubeDef](../../../ado/reference/ado-md-api/cubedef-object-ado-md.md) objects that represent a cube from a multidimensional catalog. ## Remarks **CubeDefs** is a standard ADO collection. With 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/cubedefs-collection-properties-methods-and-events.md) ## See Also [Catalog Example (VB)](../../../ado/reference/ado-md-api/catalog-example-vb.md) [Catalog Object (ADO MD)](../../../ado/reference/ado-md-api/catalog-object-ado-md.md) [CubeDef Object (ADO MD)](../../../ado/reference/ado-md-api/cubedef-object-ado-md.md)