Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ModelComponentCollection.GetItem Method

Gets a reference to the specified component.

Namespace:  Microsoft.AnalysisServices
Assembly:  Microsoft.AnalysisServices (in Microsoft.AnalysisServices.dll)
protected IModelComponent GetItem(
	string key,
	bool throwIfNotFound,
	string keyPropertyName
)

Parameters

key
Type: System.String
The key of the IModelComponent to get from the ModelComponentCollection.
throwIfNotFound
Type: System.Boolean
true if ItemNotFoundException should be thrown if the key is not found in the ModelComponentCollection;otherwise, false.
keyPropertyName
Type: System.String
The name of the IModelComponent property that provides key values.

Return Value

Type: Microsoft.AnalysisServices.IModelComponent
The IModelComponent that has the specified key.
ExceptionCondition
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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.