TraceEventCollection.Contains 方法 (TraceEventClass)
Indicates whether the collection contains a TraceEvent that has the specified TraceEventClass value.
命名空間: Microsoft.AnalysisServices
組件: Microsoft.AnalysisServices (在 Microsoft.AnalysisServices.dll 中)
語法
'宣告
Public Function Contains ( _
eventId As TraceEventClass _
) As Boolean
'用途
Dim instance As TraceEventCollection
Dim eventId As TraceEventClass
Dim returnValue As Boolean
returnValue = instance.Contains(eventId)
public bool Contains(
TraceEventClass eventId
)
public:
bool Contains(
TraceEventClass eventId
)
member Contains :
eventId:TraceEventClass -> bool
public function Contains(
eventId : TraceEventClass
) : boolean
參數
- eventId
型別:Microsoft.AnalysisServices.TraceEventClass
The TraceEventClass value of the TraceEvent to return.
傳回值
型別:System.Boolean
true if the TraceEvent exists in the collection; otherwise, false.