Share via


CommandCollection.Contains Method

Indicates whether the collection contains a specified Command.

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

Syntax

'Declaration
Public Function Contains ( _
    item As Command _
) As Boolean
'Usage
Dim instance As CommandCollection
Dim item As Command
Dim returnValue As Boolean

returnValue = instance.Contains(item)
public bool Contains(
    Command item
)
public:
bool Contains(
    Command^ item
)
member Contains : 
        item:Command -> bool 
public function Contains(
    item : Command
) : boolean

Parameters

Return Value

Type: System.Boolean
true if the Command is contained in the collection; otherwise, false.