Share via


DictionaryCollectionBase<T, U>.Contains Method (T)

Determines whether the specified element is in the collection.

Namespace:  Microsoft.SqlServer.Management.SqlParser.MetadataProvider
Assembly:  Microsoft.SqlServer.Management.SqlParser (in Microsoft.SqlServer.Management.SqlParser.dll)

Syntax

'Declaration
Public Function Contains ( _
    item As T _
) As Boolean
'Usage
Dim instance As DictionaryCollectionBase
Dim item As T
Dim returnValue As Boolean

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

Parameters

  • item
    Type: T
    The element to find.

Return Value

Type: System.Boolean
true if the element is in the collection; otherwise, false.

Implements

IMetadataCollection<T>.Contains(String)