Compartilhar via


Método CubeCollection.GetByName

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

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

Sintaxe

'Declaração
Public Function GetByName ( _
    name As String _
) As Cube
'Uso
Dim instance As CubeCollection 
Dim name As String 
Dim returnValue As Cube 

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

Parâmetros

Valor de retorno

Tipo: Microsoft.AnalysisServices.Cube
The Cube, if contained in the collection.

Exceções

Exceção Condição
ItemNotFoundException

name is not contained by the collection.

Consulte também

Referência

CubeCollection Classe

Namespace Microsoft.AnalysisServices