Internet Direct (Indy)
Home
PreviousUpNext
TEvent.Create Constructor (IntPtr, Boolean, Boolean, string)

Constructor for the object instance.

Pascal
constructor Create(
    EventAttributes: IntPtr; 
    ManualReset: Boolean; 
    InitialState: Boolean; 
    const Name: string = ''
); overload;
Parameters 
Description 
EventAttributes 
Attributes for the event.
 
ManualReset 
Indicates if the event is manually reset.
 
InitialState 
Inital state values for the FCL class.
 
Name 
Name of the event. Unused. 

Create is the overloaded constructor for the object instance. 

EventAttributes is the attributes for the event, and is provide for compatibility with the inherited constructor. They are not used in the overloaded constructor. 

ManualReset indicates the type of FCL event to create for the object instance. When ManualReset contains True, the event stores a ManualResetEvent object instance with the values in InitialState. When ManualReset contains False, the event stores a AutoResetEvent object instance with the values in InitialState. 

InitialState represents the arguments passed to the ManualResetEvent or AutoResetEvent used in the object instance. 

Name is provided for compatibility with the inherited constructor, but is not used in the overloaded constructor. 

Use Destroy to free the object instance.

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.