ModelComponentCollection.Contains Method (String)


Applies To: SQL Server (starting with 2016)

Determines whether an item with the specified key is in the ModelComponentCollection.

Namespace:   Microsoft.AnalysisServices
Assembly:  Microsoft.AnalysisServices.Core (in Microsoft.AnalysisServices.Core.dll)

protected bool Contains(
	string key


Type: System.String

The key of the IModelComponent to locate in the ModelComponentCollection.

Return Value

Type: System.Boolean

true if key found in the ModelComponentCollection; otherwise, false.

Return to top