次の方法で共有


CubeCollection.GetByName メソッド

指定した名前の Cube をコレクションから取得します。

名前空間:  Microsoft.AnalysisServices
アセンブリ:  Microsoft.AnalysisServices (Microsoft.AnalysisServices.dll)

構文

'宣言
Public Function GetByName ( _
    name As String _
) As Cube
'使用
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

パラメーター

戻り値

型: Microsoft.AnalysisServices.Cube
コレクションに含まれている場合は Cube です。

例外

例外 条件
ItemNotFoundException

name がコレクションに含まれていません。

関連項目

参照

CubeCollection クラス

Microsoft.AnalysisServices 名前空間