Partager via


Méthode Contains (T)

Determines whether the collection contains the specified object. Ne référencez pas directement ce membre dans votre code. Il prend en charge l'infrastructure SQL Server.

Espace de noms :  Microsoft.SqlServer.Management.Sdk.Sfc
Assembly :  Microsoft.SqlServer.Management.Sdk.Sfc (en Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Syntaxe

'Déclaration
Public MustOverride Function Contains ( _
    obj As T _
) As Boolean
'Utilisation
Dim instance As SfcCollection
Dim obj As T
Dim returnValue As Boolean

returnValue = instance.Contains(obj)
public abstract bool Contains(
    T obj
)
public:
virtual bool Contains(
    T obj
) abstract
abstract Contains : 
        obj:'T -> bool 
public abstract function Contains(
    obj : T
) : boolean

Paramètres

  • obj
    Type : T
    The object to find.

Valeur de retour

Type : System. . :: . .Boolean
true if the collection contains the object; otherwise, false.

Implémente

ICollection< (Of < ( <'T> ) > ) >. . :: . .Contains(T)