GetItem メソッド

指定したコンポーネントへの参照を取得します。

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

構文

'宣言
Protected Function GetItem ( _
    key As String, _
    throwIfNotFound As Boolean, _
    keyPropertyName As String _
) As IModelComponent
'使用
Dim key As String
Dim throwIfNotFound As Boolean
Dim keyPropertyName As String
Dim returnValue As IModelComponent

returnValue = Me.GetItem(key, throwIfNotFound, _
    keyPropertyName)
protected IModelComponent GetItem(
    string key,
    bool throwIfNotFound,
    string keyPropertyName
)
protected:
IModelComponent^ GetItem(
    String^ key, 
    bool throwIfNotFound, 
    String^ keyPropertyName
)
member GetItem : 
        key:string * 
        throwIfNotFound:bool * 
        keyPropertyName:string -> IModelComponent 
protected function GetItem(
    key : String, 
    throwIfNotFound : boolean, 
    keyPropertyName : String
) : IModelComponent

パラメーター

  • keyPropertyName
    型: System. . :: . .String
    キー値を提供する IModelComponent プロパティの名前です。

戻り値

型: Microsoft.AnalysisServices. . :: . .IModelComponent
指定したキーを持つ IModelComponent です。

例外

例外 条件
ItemNotFoundException

throwIfNotFound が false に設定された状態で、次のいずれかの条件が発生しています。

key に null 参照 (Visual Basic では Nothing) が含まれています。

-または-

key が ModelComponentCollection 内に見つかりません。