Condividi tramite


Metodo Contains (T)

Determines whether the collection contains the specified object. Non fare riferimento direttamente a questo membro nel codice. Supporta l'infrastruttura di SQL Server.

Spazio dei nomi  Microsoft.SqlServer.Management.Sdk.Sfc
Assembly:  Microsoft.SqlServer.Management.Sdk.Sfc (in Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Sintassi

'Dichiarazione
Public Overrides Function Contains ( _
    obj As T _
) As Boolean
'Utilizzo
Dim instance As SfcCollatedDictionaryCollection
Dim obj As T
Dim returnValue As Boolean

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

Parametri

  • obj
    Tipo: T
    The object to find in the collection.

Valore restituito

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

Implementa

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