Partager via


Méthode TraceEventCollection.Add (TraceEventClass)

Creates and adds a TraceEvent, with the specified TraceEventClass value, to the end of the collection.

Espace de noms :  Microsoft.AnalysisServices
Assembly :  Microsoft.AnalysisServices (en Microsoft.AnalysisServices.dll)

Syntaxe

'Déclaration
Public Function Add ( _
    eventId As TraceEventClass _
) As TraceEvent
'Utilisation
Dim instance As TraceEventCollection 
Dim eventId As TraceEventClass 
Dim returnValue As TraceEvent 

returnValue = instance.Add(eventId)
public TraceEvent Add(
    TraceEventClass eventId
)
public:
TraceEvent^ Add(
    TraceEventClass eventId
)
member Add : 
        eventId:TraceEventClass -> TraceEvent
public function Add(
    eventId : TraceEventClass
) : TraceEvent

Paramètres

Valeur de retour

Type : Microsoft.AnalysisServices.TraceEvent
A new, empty TraceEvent.

Voir aussi

Référence

TraceEventCollection Classe

Surcharge Add

Espace de noms Microsoft.AnalysisServices