共用方式為


TraceEventCollection.Contains Method

Definition

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.

Applies to