[]
        
(Showing Draft Content)

GrapeCity.Documents.Common.OwnedKeyedCollection-2.CheckKey

CheckKey Method

CheckKey(TItem, TKey, TKey)

Throws an exception if collection already contains item with specified key.

Declaration
public virtual void CheckKey(TItem item, TKey oldKey, TKey newKey)
Public Overridable Sub CheckKey(item As TItem, oldKey As TKey, newKey As TKey)
Parameters
Type Name Description
TItem item

The item to check.

TKey oldKey

The old key.

TKey newKey

The new key.