Dela via


TraceEventCollection.Add Method (TraceEvent)

Adds a TraceEvent to the end of the collection.

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

Syntax

'Declaration
Public Function Add ( _
    item As TraceEvent _
) As Integer
'Usage
Dim instance As TraceEventCollection
Dim item As TraceEvent
Dim returnValue As Integer

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

Parameters

Return Value

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