Internet Direct (Indy)
Home
PreviousUpNext
TIdIOHandler.MakeIOHandler Method

Creates a new instance of an IOHandler using the specified class reference.

Pascal
class function MakeIOHandler(
    ABaseType: TIdIOHandlerClass; 
    AOwner: TIdNativeComponent = nil
): TIdIOHandler;
Parameters 
Description 
ABaseType 
Class reference used to create the IOHandler instance.
 
AOwner 
Component that owns the IOHandler class instance. Default value is nil. 

TIdIOHandler - The new IOHandler class instance.

MakeIOHandler is a class method used to create a new instance of an IOHandler using the class reference specified in ABaseType. MakeIOHandler searches GIOHandlerClassList for an IOHandlers class that inherits from the ancestor class in ABaseType, an it is used to instantiate the class instance for the return value. 

MakeIOHandler can raise an EIdException exception if an instance of the ancestor class is not found in GIOHandlerClassList. 

The value in AOwner is ignored at the present time.

Exceptions 
Description 
Raised with the message RSIOHandlerTypeNotInstalled and the class name for the ancestor class in ABaseType. 
Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.