Partager via


Contains méthode (TraceEvent)

Indicates whether the collection contains a specified TraceEvent.

Espace de noms :  Microsoft.AnalysisServices
Assembly :  Microsoft.AnalysisServices (dans Microsoft.AnalysisServices.dll)

Syntaxe

'Déclaration
Public Function Contains ( _
    item As TraceEvent _
) As Boolean
'Utilisation
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

Paramètres

Valeur de retour

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