Internet Direct (Indy) Version 9.0.1 Beta
TIdMessageDecoderList.ByName
Locates an instance of a registered decoder class by name.

class function ByName(const AName: string): TIdMessageDecoderInfo;
Parameters
const AName: string
Decoder class name to be located.

Returns
TIdMessageDecoderInfo - Container that holds information and class type for the registered decoder class.

Description
ByName is a TIdMessageDecoderInfo class function used to locate an instance of a registered decoder class by the name specified in AName. ByName searches the global list of registerd decoder classes to locate an instance with a name matching AName.

If there is no registered decoder class with a name matching AName, an EIdException is raised with the constant message RSMessageDecoderNotFound and the value in AName.