Méthode TraceEventCollection.Contains (TraceEventClass)
Indicates whether the collection contains a TraceEvent that has the specified TraceEventClass value.
Espace de noms : Microsoft.AnalysisServices
Assembly : Microsoft.AnalysisServices (en Microsoft.AnalysisServices.dll)
Syntaxe
'Déclaration
Public Function Contains ( _
eventId As TraceEventClass _
) As Boolean
'Utilisation
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
Paramètres
- eventId
Type : Microsoft.AnalysisServices.TraceEventClass
The TraceEventClass value of the TraceEvent to return.
Valeur de retour
Type : System.Boolean
true if the TraceEvent exists in the collection; otherwise, false.