Share via


CubeCollection.Find Method

Gets the specified CubeDef from the collection by its name.

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

Syntax

'Declaration
Public Function Find ( _
    name As String _
) As CubeDef
'Usage
Dim instance As CubeCollection 
Dim name As String 
Dim returnValue As CubeDef 

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

Parameters

  • name
    Type: String
    The name of the CubeDef to find.

Return Value

Type: Microsoft.AnalysisServices.AdomdServer.CubeDef
The Find method returns nulla null reference (Nothing in Visual Basic) if the object is not found, whereas the Itemproperty throws an exception if the object is not found.

See Also

Reference

CubeCollection Class

Microsoft.AnalysisServices.AdomdServer Namespace