TraceEventCollection.Contains Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Contains(TraceEvent) |
Determines whether the specified TraceEvent exists in the collection. |
Contains(TraceEventClass) |
Determines whether a TraceEvent with the specified EventID exists in the collection. |
Contains(TraceEvent)
Determines whether the specified TraceEvent exists in the collection.
public bool Contains (Microsoft.AnalysisServices.TraceEvent item);
member this.Contains : Microsoft.AnalysisServices.TraceEvent -> bool
Public Function Contains (item As TraceEvent) As Boolean
Parameters
- item
- TraceEvent
The TraceEvent whose existence is checked.
Returns
True, if the specified TraceEvent is found in the collection; otherwise, false.
Applies to
Contains(TraceEventClass)
Determines whether a TraceEvent with the specified EventID exists in the collection.
public bool Contains (Microsoft.AnalysisServices.TraceEventClass eventId);
member this.Contains : Microsoft.AnalysisServices.TraceEventClass -> bool
Public Function Contains (eventId As TraceEventClass) As Boolean
Parameters
- eventId
- TraceEventClass
The EventID of the TraceEvent to look for.
Returns
True, if a TraceEvent with the specified EventID is found in the collection; otherwise, false.