Documents for PDF .NET Edition
GrapeCity.Documents.Common Assembly / GrapeCity.Documents.Common Namespace / OwnedKeyedCollection<TKey,TItem> Class / CheckKey Method
The item to check.
The old key.
The new key.

In This Topic
    CheckKey Method
    In This Topic
    Throws an exception if collection already contains item with specified key.
    Syntax
    'Declaration
     
    Public Overridable Sub CheckKey( _
       ByVal item As TItem, _
       ByVal oldKey As TKey, _
       ByVal newKey As TKey _
    ) 
    public virtual void CheckKey( 
       TItem item,
       TKey oldKey,
       TKey newKey
    )

    Parameters

    item
    The item to check.
    oldKey
    The old key.
    newKey
    The new key.
    See Also