Dela via


TraceEventCollection.Contains Method (TraceEvent)

Indicates whether the collection contains a specified TraceEvent.

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

Syntax

'Declaration
Public Function Contains ( _
    item As TraceEvent _
) As Boolean
'Usage
Dim instance As TraceEventCollection
Dim item As TraceEvent
Dim returnValue As Boolean

returnValue = instance.Contains(item)
public bool Contains(
    TraceEvent item
)
public:
bool Contains(
    TraceEvent^ item
)
member Contains : 
        item:TraceEvent -> bool 
public function Contains(
    item : TraceEvent
) : boolean

Parameters

Return Value

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