function KeyByName(const KeyName: string): TScKey;

 

Description

Returns a key by specified key name.

Call the KeyByName method to retrieve key information for a key when only the key's name is known. KeyByName returns the TScKey object for the specified key. If the key can not be found, an exception is raised.

 

Note:

KeyByName differs from the FindKey method only when the named key is not in the list. When the key is not found, FindKey returns nil, while KeyByName raises an exception.

 

See also

FindKey

 

SecureBridge Components, Copyright © 2007-2024 Devart. All Rights Reserved. Provide Feedback Visit Forum Request Support