共用方式為


TraceEventCollection.Find 方法

Gets the TraceEvent that has the specified TraceEventClass value from the collection.

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

語法

'宣告
Public Function Find ( _
    eventId As TraceEventClass _
) As TraceEvent
'用途
Dim instance As TraceEventCollection 
Dim eventId As TraceEventClass 
Dim returnValue As TraceEvent 

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

參數

傳回值

型別:Microsoft.AnalysisServices.TraceEvent
The TraceEvent if it exists in the collection; otherwise, a null reference (Nothing in Visual Basic).

請參閱

參考

TraceEventCollection 類別

Microsoft.AnalysisServices 命名空間