API:System.Win.ComObj.EOleSysError.Create
Aus RAD Studio API Documentation
Delphi
constructor Create(const Message: UnicodeString; ErrorCode: HRESULT; HelpContext: Integer);
C++
__fastcall EOleSysError(const System::UnicodeString Message, HRESULT ErrorCode, int HelpContext); /* Exception.CreateFmt */ inline __fastcall EOleSysError(const System::UnicodeString Msg, System::TVarRec const *Args, const int Args_Size) : EOleError(Msg, Args, Args_Size) { } /* Exception.CreateRes */ inline __fastcall EOleSysError(NativeUInt Ident)/* overload */ : EOleError(Ident) { } /* Exception.CreateRes */ inline __fastcall EOleSysError(System::PResStringRec ResStringRec)/* overload */ : EOleError(ResStringRec) { } /* Exception.CreateResFmt */ inline __fastcall EOleSysError(NativeUInt Ident, System::TVarRec const *Args, const int Args_Size)/* overload */ : EOleError(Ident, Args, Args_Size) { } /* Exception.CreateResFmt */ inline __fastcall EOleSysError(System::PResStringRec ResStringRec, System::TVarRec const *Args, const int Args_Size)/* overload */ : EOleError(ResStringRec, Args, Args_Size) { } /* Exception.CreateHelp */ inline __fastcall EOleSysError(const System::UnicodeString Msg, int AHelpContext) : EOleError(Msg, AHelpContext) { } /* Exception.CreateFmtHelp */ inline __fastcall EOleSysError(const System::UnicodeString Msg, System::TVarRec const *Args, const int Args_Size, int AHelpContext) : EOleError(Msg, Args, Args_Size, AHelpContext) { } /* Exception.CreateResHelp */ inline __fastcall EOleSysError(NativeUInt Ident, int AHelpContext)/* overload */ : EOleError(Ident, AHelpContext) { } /* Exception.CreateResHelp */ inline __fastcall EOleSysError(System::PResStringRec ResStringRec, int AHelpContext)/* overload */ : EOleError(ResStringRec, AHelpContext) { } /* Exception.CreateResFmtHelp */ inline __fastcall EOleSysError(System::PResStringRec ResStringRec, System::TVarRec const *Args, const int Args_Size, int AHelpContext)/* overload */ : EOleError(ResStringRec, Args, Args_Size, AHelpContext) { } /* Exception.CreateResFmtHelp */ inline __fastcall EOleSysError(NativeUInt Ident, System::TVarRec const *Args, const int Args_Size, int AHelpContext)/* overload */ : EOleError(Ident, Args, Args_Size, AHelpContext) { }
Eigenschaften
| Typ | Sichtbarkeit | Quelle | Unit | Übergeordnet |
|---|---|---|---|---|
| constructor | public | System.Win.ComObj.pas System.Win.ComObj.hpp |
System.Win.ComObj | EOleSysError |
Beschreibung
Instantiiert eine Instanz einer Exception mit einem einfachen Meldungs-String.
System.Win.ComObj.EOleSysError.Create erbt von System.SysUtils.Exception.Create. Der folgende Inhalt bezieht sich auf System.SysUtils.Exception.Create.
Instantiiert eine Instanz einer Exception mit einem einfachen Meldungs-String.
Mit Create lässt sich ein Exception-Objekt mit einem einfachen Meldungs-String erzeugen.
Msg ist der String mit der Fehlermeldung, die zur Laufzeit im Exception-Dialogfeld angezeigt werden soll. Msg kann ein festcodierter String oder ein Funktionsaufruf sein, der einen String zurückgibt.