Share via


CommandCollection.Add Method

Adds a Command to the end of the collection.

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

Syntax

'Declaration
Public Function Add ( _
    item As Command _
) As Integer
'Usage
Dim instance As CommandCollection 
Dim item As Command 
Dim returnValue As Integer 

returnValue = instance.Add(item)
public int Add(
    Command item
)
public:
int Add(
    Command^ item
)
member Add : 
        item:Command -> int
public function Add(
    item : Command
) : int

Parameters

Return Value

Type: System.Int32
The zero-based index at which the Command has been added.

See Also

Reference

CommandCollection Class

Microsoft.AnalysisServices Namespace