Topic Path: Symbol Reference > Classes > TEvent Class > TEvent Methods > Create Constructor > Create Constructor (IntPtr, Boolean, Boolean, string)
ContentsIndexHome
PreviousUpNext
TEvent.Create Constructor (IntPtr, Boolean, Boolean, string)

Constructor for the object instance.

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.

Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.