API:System.SyncObjs.TEvent.Create
Delphi
constructor Create(EventAttributes: PSecurityAttributes; ManualReset, InitialState: Boolean; const Name: string; UseCOMWait: Boolean = False); overload;
constructor Create(UseCOMWait: Boolean = False); overload;
C++
__fastcall TEvent(Winapi::Windows::PSecurityAttributes EventAttributes, bool ManualReset, bool InitialState, const System::UnicodeString Name, bool UseCOMWait)/* overload */;
__fastcall TEvent(bool UseCOMWait)/* overload */;
Eigenschaften
Typ | Sichtbarkeit | Quelle | Unit | Übergeordnet |
---|---|---|---|---|
constructor | public | System.SyncObjs.pas System.SyncObjs.hpp |
System.SyncObjs | TEvent |
Beschreibung
Instantiiert ein THandleObject-Objekt.
System.SyncObjs.TEvent.Create erbt von System.SyncObjs.THandleObject.Create. Der folgende Inhalt bezieht sich auf System.SyncObjs.THandleObject.Create.
Instantiiert ein THandleObject-Objekt.
Mit Create wird ein THandleObject-Objekt erstellt.
Setzen Sie den Parameter UseCOMWait, um sicherzustellen, dass – wenn ein Thread blockiert ist und auf das Objekt wartet – STA COM-Aufrufe zurück in diesen Thread gemacht werden können.