Data.Bind.ObjectScope.TAdapterErrorEvent
Delphi
TAdapterErrorEvent = procedure(Adapter: TBindSourceAdapter; E: EBindCompError;
var Action: TAdapterErrorAction) of object;
C++
typedef void __fastcall (__closure *TAdapterErrorEvent)(TBindSourceAdapter* Adapter, Data::Bind::Components::EBindCompError* E, TAdapterErrorAction &Action);
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
type typedef |
public | Data.Bind.ObjectScope.pas Data.Bind.ObjectScope.hpp |
Data.Bind.ObjectScope | Data.Bind.ObjectScope |
説明
TAdapterErrorEvent は、データ ソースの項目を挿入/編集/更新/削除しようとする際、または、データ ソースへ更新を適用する際に、TBindSourceAdapter が例外を挙げると、発生するイベント ハンドラです。
TAdapterErrorEvent には 3 つのパラメータがあります: :
- Adapter は、'exception' を生成したアダプタを示します。
- E は例外です。
- Action は、開発者によって、TAdapterErrorActionで定義されているアクション((aaFail、aaAbort、aaRetry)のいずれかと共に定義されます。