Méthode HierarchyCollection.Find
Gets the specified Hierarchy from the collection by its name.
Espace de noms : Microsoft.AnalysisServices.AdomdServer
Assembly : msmgdsrv (en msmgdsrv.dll)
Syntaxe
'Déclaration
Public Function Find ( _
name As String _
) As Hierarchy
'Utilisation
Dim instance As HierarchyCollection
Dim name As String
Dim returnValue As Hierarchy
returnValue = instance.Find(name)
public Hierarchy Find(
string name
)
public:
Hierarchy^ Find(
String^ name
)
member Find :
name:string -> Hierarchy
public function Find(
name : String
) : Hierarchy
Paramètres
- name
Type : System.String
The name of the Hierarchy to find.
Valeur de retour
Type : Microsoft.AnalysisServices.AdomdServer.Hierarchy
The Hierarchy with the specified name if found; otherwise, null.
Notes
If the object is not found, the Find method returns null, whereas the Item property throws an exception.