Internet Direct (Indy) Version 9.0.1 Beta
TIdMessageEncoderList.ByName
Retrieves information about a registered encoder class using a specified name.

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

Returns
TIdMessageEncoderInfo - Registerd encoder class that matxh the specified name.

Description
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.