GetByName-Methode

Gets the Hierarchy, with the specified name, from the collection.

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

Syntax

'Declaration
Public Function GetByName ( _
    name As String _
) As Hierarchy
'Usage
Dim instance As HierarchyCollection
Dim name As String
Dim returnValue As Hierarchy

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

Parameter

Rückgabewert

Typ: Microsoft.AnalysisServices. . :: . .Hierarchy
The Hierarchy with the name specified in name.

Ausnahmen

Ausnahme Bedingung
ItemNotFoundException

name is not contained by the collection.