Condividi tramite


Metodo GetByName

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

Spazio dei nomi:  Microsoft.AnalysisServices
Assembly:  Microsoft.AnalysisServices (in Microsoft.AnalysisServices.dll)

Sintassi

'Dichiarazione
Public Function GetByName ( _
    name As String _
) As Hierarchy
'Utilizzo
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

Parametri

Valore restituito

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

Eccezioni

Eccezione Condizione
ItemNotFoundException

name is not contained by the collection.