Partilhar via


HierarchyCollection.GetByName(String) Method

Definition

Gets the Hierarchy that has the specified name from the collection.

public Microsoft.AnalysisServices.Hierarchy GetByName (string name);
member this.GetByName : string -> Microsoft.AnalysisServices.Hierarchy
Public Function GetByName (name As String) As Hierarchy

Parameters

name
String

The name of the Hierarchy to locate.

Returns

The Hierarchy with the specified Name.

Exceptions

The collection doesn't contain a Hierarchy with the specified name.

Applies to