Поделиться через


Метод ConnectionEvaluationHistoryCollection.Contains (Int32)

Verifies whether the an object with the specified ID value exists in the collection.

Пространство имен:  Microsoft.SqlServer.Management.Dmf
Сборка:  Microsoft.SqlServer.Dmf (в Microsoft.SqlServer.Dmf.dll)

Синтаксис

'Декларация
Public Function Contains ( _
    id As Integer _
) As Boolean
'Применение
Dim instance As ConnectionEvaluationHistoryCollection 
Dim id As Integer 
Dim returnValue As Boolean 

returnValue = instance.Contains(id)
public bool Contains(
    int id
)
public:
bool Contains(
    int id
)
member Contains : 
        id:int -> bool
public function Contains(
    id : int
) : boolean

Параметры

Возвращаемое значение

Тип: System.Boolean
A Boolean object value that specifies whether the referenced object is in the collection. If True, it exists in the collection. Otherwise, False.

Замечания

Это пространство имен, класс или элемент поддерживаются только платформой Microsoft .NET Framework версии 2.0.

Примеры

Использование коллекций

См. также

Справочник

ConnectionEvaluationHistoryCollection Класс

Перегрузка Contains

Пространство имен Microsoft.SqlServer.Management.Dmf