共用方式為


Add 方法 (TraceEventClass)

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

命名空間:  Microsoft.AnalysisServices
組件:  Microsoft.AnalysisServices (在 Microsoft.AnalysisServices.dll 中)

語法

'宣告
Public Function Add ( _
    eventId As TraceEventClass _
) As TraceEvent
'用途
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