Jaa


ModelComponentCollection.GetItem(String, Boolean, String) Method

Definition

Gets a reference to the specified component.

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

Parameters

key
String

The key of the IModelComponent to get from the ModelComponentCollection.

throwIfNotFound
Boolean

true if Exception should be thrown if the key is not found in the ModelComponentCollection;otherwise, false.

keyPropertyName
String

The name of the IModelComponent property that provides key values.

Returns

The IModelComponent that has the specified key.

Applies to