Internet Direct (Indy) Version 9.0.2 Beta
TIdCommandHandler.NameIs
Checks that a command handler has the specified name.

function NameIs(ACommand: string): Boolean;
Parameters
ACommand: string
Name to be compared to the property value.

Returns
Boolean - True when the command handler has the specified name.

Description
NameIs is a Boolean function that allows comparison of the Name property to the value specified in ACommand. NameIs can be used to insure that a TIdCommandHandler contains the name desired before triggering a procedure used as an action handler.