ModelComponentCollection.GetItem 메서드

Gets a reference to the specified component.

네임스페이스:  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
    The name of the IModelComponent property that provides key values.

반환 값

유형: Microsoft.AnalysisServices.IModelComponent
The IModelComponent that has the specified key.

예외

예외 조건
ItemNotFoundException

throwIfNotFound is set to false and one of the following conditions occurs:

key contains a null reference (Nothing in Visual Basic.)

-or-

key cannot be found in the ModelComponentCollection.

참고 항목

참조

ModelComponentCollection 클래스

Microsoft.AnalysisServices 네임스페이스