Aracılığıyla paylaş


ModelComponentCollection.GetItem Yöntemi

Belirtilen bileşen için bir başvuru alır.

Ad Alanı:  Microsoft.AnalysisServices
Derleme:  Microsoft.AnalysisServices (Microsoft.AnalysisServices içinde.dll)

Sözdizimi

'Bildirim
Protected Function GetItem ( _
    key As String, _
    throwIfNotFound As Boolean, _
    keyPropertyName As String _
) As IModelComponent
'Kullanım
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

Parametreler

  • keyPropertyName
    Tür: System.String
    Adı IModelComponent özellik sağlayan anahtar değerleri.

Dönüş Değeri

Tür: Microsoft.AnalysisServices.IModelComponent
IModelComponent Olan belirtilen anahtar.

Kural dışı durumlar

Özel durum Koşul
ItemNotFoundException

throwIfNotFoundise küme için yanlış ve aşağıdaki koşullardan biri oluşur:

keybir null başvuru içerir (hiçbir şey Visual Basic.)

- veya -

keyiçinde bulunamıyor ModelComponentCollection.