--- title: "Depth Property (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: - "Level::Depth" - "Depth" helpviewer_keywords: - "Depth property [ADO MD]" ms.assetid: e41f2644-617d-4c09-80a4-feb5cf736186 author: MightyPen ms.author: genemi --- # Depth Property (ADO MD) Indicates the number of levels between the [Level](../../../ado/reference/ado-md-api/level-object-ado-md.md) and the root of the hierarchy. ## Return Values Returns an integer, and is read-only. ## Remarks A **Level** at the root of a hierarchy has a **Depth** value of zero (0). ## Applies To [Level Object (ADO MD)](../../../ado/reference/ado-md-api/level-object-ado-md.md) ## See Also [LevelDepth Property (ADO MD)](../../../ado/reference/ado-md-api/leveldepth-property-ado-md.md)