Delen via


TraceEventCollection.Contains Method (TraceEventClass)

Indicates whether the collection contains a TraceEvent that has the specified TraceEventClass value.

Namespace:  Microsoft.AnalysisServices
Assembly:  Microsoft.AnalysisServices (in Microsoft.AnalysisServices.dll)

Syntax

'Declaration
Public Function Contains ( _
    eventId As TraceEventClass _
) As Boolean
'Usage
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

Parameters

Return Value

Type: System.Boolean
true if the TraceEvent exists in the collection; otherwise, false.

See Also

Reference

TraceEventCollection Class

Contains Overload

Microsoft.AnalysisServices Namespace