Internet Direct (Indy)
|
Copies items stored in a list to the current thread-safe list instance.
procedure Assign( AList: TIdList ); overload;
Parameters |
Description |
AList |
List containing items to store in the thread-safe list. |
Assign is an overloaded method used to store the contents of the TIdList specified in AList to the current thread-safe list instance.
Assign calls LockList to enable resource protection for the thread-safe list. Any existing items in the list are removed using Clear. The list capacity is set to the Capacity indicated in AList.
Assign iterates over items in AList, and calls the Add method to store the TObject instances in the thread-safe list.
Assign calls UnlockList to disable resource protection for the thread-safe list.
TIdThreadSafeList.Assign
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. |