Sdílet prostřednictvím


HierarchyCollection.Find Method

Gets the specified Hierarchy from the collection by its name.

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

Syntax

'Declaration
Public Function Find ( _
    index As String _
) As Hierarchy
'Usage
Dim instance As HierarchyCollection 
Dim index As String 
Dim returnValue As Hierarchy 

returnValue = instance.Find(index)
public Hierarchy Find(
    string index
)
public:
Hierarchy^ Find(
    String^ index
)
member Find : 
        index:string -> Hierarchy
public function Find(
    index : String
) : Hierarchy

Parameters

Return Value

Type: Microsoft.AnalysisServices.AdomdClient.Hierarchy
The Hierarchy with the specified name if found in the collection; otherwise, null.

Remarks

If the object is not found, the Find method returns null, whereas the Item property throws an exception.

See Also

Reference

HierarchyCollection Class

Microsoft.AnalysisServices.AdomdClient Namespace