Topic Path: Symbol Reference > Classes > TIdMessageDecoderList Class > TIdMessageDecoderList Methods > ByName Method
ContentsIndexHome
PreviousUpNext
TIdMessageDecoderList.ByName Method

Locates an instance of a registered decoder class by name.

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

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

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 registered decoder classes in GMessageDecoderList to locate an instance with a name matching the value in 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.

Exceptions 
Description 
With the message RSMessageDecoderNotFound
Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.