Share via


ModelComponentCollection.GetItem(String, Boolean, String) Metodo

Definizione

Ottiene un riferimento al componente specificato.

protected Microsoft.AnalysisServices.IModelComponent GetItem (string key, bool throwIfNotFound, string keyPropertyName);
member this.GetItem : string * bool * string -> Microsoft.AnalysisServices.IModelComponent
Protected Function GetItem (key As String, throwIfNotFound As Boolean, keyPropertyName As String) As IModelComponent

Parametri

key
String

La chiave dell'oggetto IModelComponent da ottenere da ModelComponentCollection.

throwIfNotFound
Boolean

true se l'eccezione deve essere generata se la chiave non è presente in ModelComponentCollection, in caso contrario, false.

keyPropertyName
String

Il nome della proprietà di IModelComponent che specifica i valori di chiave.

Restituisce

L'oggetto IModelComponent con la chiave specificata.

Si applica a