TraceEventCollection.Find(TraceEventClass) 方法

定义

返回具有指定 EventId 的 TraceEvent

public Microsoft.AnalysisServices.TraceEvent Find (Microsoft.AnalysisServices.TraceEventClass eventId);
member this.Find : Microsoft.AnalysisServices.TraceEventClass -> Microsoft.AnalysisServices.TraceEvent
Public Function Find (eventId As TraceEventClass) As TraceEvent

参数

eventId
TraceEventClass

要返回的 TraceEvent 的 EventId。

返回

如果找到,则为具有指定 EventId 的 TraceEvent;否则为空引用(在 Visual Basic 中为 Nothing)。

适用于