Topic Path: Symbol Reference > Classes > TIdMessageEncoderList Class > TIdMessageEncoderList Methods > RegisterEncoder Method
TIdMessageEncoderList.RegisterEncoder Method

Registers and stores information about encoder class types.

class procedure RegisterEncoder(
    const AMessageEncoderName: string; 
    AMessageEncoderInfo: TIdMessageEncoderInfo
Name to be associated with the registered encoder class.
Information about the registered encoder class. 

RegisterEncoder is a class procedure in TIdMessageEncoderList that provides a mechanism for registering and storing information about encoder class types. 

RegisterEncoder checks to ensure that the list for registered encoder classed has be initialized to a valid TIdMessageEncoderList instance. RegisterEncoder adds the class information in AMessageEncoderInfo to the list, and associates the name in AName with the registered class type. 

RegisterEncoder is called from the initialization section of the Unit that contains the class type, like IdMessageCoder.pas, IdMessageCoderMIME.pas, IdMessageCoderUUE.pas, and IdMessageCoderXXE.pas.

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