Internet Direct (Indy) Version 9.0.2 Beta
TIdSMTPGreeting.Assign
Copies the properties of one Object instance to another.

procedure Assign(Source: TPersistent); override;
Parameters
Source: TPersistent
Object instance containing values to be copied.

Description
Assign is an overridden procedure that copies the property values in Source to the current object instance. Assign calls the inherited Assign method.

Assign checks whether the Source parameter specifies another TIdSMTPGreeting instance, and if so, copies the values of the EHLONotSupported, HelloReply, NoHello, and EHLOReply properties.

If Source is not a TIdSMTPGreeting instance, Assign calls the inherited method, which assigns properties from any object that specifies how to copy using the AssignTo method.