Share via


CubeHierarchyCollection.Item Property (String)

Gets the CubeHierarchy, with the specified identifier, from the collection.

Namespace:  Microsoft.AnalysisServices
Assembly:  Microsoft.AnalysisServices (in Microsoft.AnalysisServices.dll)

Syntax

'Declaration
Public ReadOnly Default Property Item ( _
    hierarchyId As String _
) As CubeHierarchy 
    Get
'Usage
Dim instance As CubeHierarchyCollection 
Dim hierarchyId As String 
Dim value As CubeHierarchy 

value = instance(hierarchyId)
public CubeHierarchy this[
    string hierarchyId
] { get; }
public:
property CubeHierarchy^ default[String^ hierarchyId] {
    CubeHierarchy^ get (String^ hierarchyId);
}
member Item : CubeHierarchy
JScript supports the use of indexed properties, but not the declaration of new ones.

Parameters

Property Value

Type: Microsoft.AnalysisServices.CubeHierarchy
The CubeHierarchy specified by the identifier.

Exceptions

Exception Condition
ArgumentNullException

hierarchyID is a null reference (Nothing in Visual Basic).

ItemNotFoundException

hierarchyID does not exist in the collection.

See Also

Reference

CubeHierarchyCollection Class

Item Overload

Microsoft.AnalysisServices Namespace