Returns whether the key exists within the collection. If this collection's Subset has been set then only the subset is searched not the entire table.

Namespace: DatabaseObjects
Assembly: DatabaseObjects (in DatabaseObjects.dll) Version: 3.8.1.0

Syntax

C#
protected bool ObjectExists(
	Object objKey
)
Visual Basic
Protected Function ObjectExists ( _
	objKey As Object _
) As Boolean
Visual C++
protected:
bool ObjectExists(
	Object^ objKey
)

Parameters

objKey
Type: System..::..Object
The key value to search by.

Return Value

Boolean (System.Boolean)

Examples

CopyC#
Public Function Exists(ByVal strProductCode As String) As Boolean

    Return MyBase.ObjectExists(strProductCode)

End Function

See Also