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

Retrieves information about a registered encoder class using a specified name.

class function ByName(
    const AName: string
): TIdMessageEncoderInfo;
Name of the registered encoder class to be retrieved. 

TIdMessageEncoderInfo - Registerd encoder class that matxh the specified name.

ByName is a TIdMessageEncoderInfo class function in TIdMessageEncoderList that retrieves information about a registered encoder class using the name specified in AName. If a registered encoder cannot be located with the specified name, an EIdException exception is raised with the constant message RSMessageEncoderNotFound the value in AName. 

ByName is used by TIdMessage and TIdMessageParts when updating the value of the AttachmentEncoding property.

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