Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Gets a reference to the specified component.
Namespace: Microsoft.AnalysisServices
Assembly: Microsoft.AnalysisServices (in Microsoft.AnalysisServices.dll)
Syntax
'Declaration
Protected Function GetItem ( _
key As String, _
throwIfNotFound As Boolean, _
keyPropertyName As String _
) As IModelComponent
'Usage
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
Parameter
- key
Typ: System.String
The key of the IModelComponent to get from the ModelComponentCollection.
- throwIfNotFound
Typ: System.Boolean
true if ItemNotFoundException should be thrown if the key is not found in the ModelComponentCollection;otherwise, false.
- keyPropertyName
Typ: System.String
The name of the IModelComponent property that provides key values.
Rückgabewert
Typ: Microsoft.AnalysisServices.IModelComponent
The IModelComponent that has the specified key.
Ausnahmen
| Ausnahme | Bedingung |
|---|---|
| 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. |