ModelComponentCollection.GetItem(String, Boolean, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.