Returns whether the key exists within the collection. If the collection's IDatabaseObjects.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#
public bool ObjectExists(
	IDatabaseObjects objCollection,
	Object objKey
)
Visual Basic
Public Function ObjectExists ( _
	objCollection As IDatabaseObjects, _
	objKey As Object _
) As Boolean
Visual C++
public:
bool ObjectExists(
	IDatabaseObjects^ objCollection, 
	Object^ objKey
)

Parameters

objCollection
Type: DatabaseObjects..::..IDatabaseObjects
The collection to search within.
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 objDatabase.ObjectExists(Me, strProductCode)

End Function

See Also