RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TInvokableClassRegistry.RegisterInvokeOptions Method (PTypeInfo, TIntfInvokeOption)

Registers flags that customize the way calls to a registered interface are made.

Pascal
procedure RegisterInvokeOptions(Info: PTypeInfo; const InvokeOption: TIntfInvokeOption); overload;
procedure RegisterInvokeOptions(Info: PTypeInfo; const InvokeOptions: TIntfInvokeOptions); overload;
C++
__fastcall RegisterInvokeOptions(PTypeInfo Info, const TIntfInvokeOption InvokeOption);
__fastcall RegisterInvokeOptions(PTypeInfo Info, const TIntfInvokeOptions InvokeOptions);

RegisterInvokeOptions associates the specified invocation flag or flags with a registered interface. The interface must be previously registered by a call to the RegisterInterface method. Invocation flags customize the way a registered interface is called, especially the way such calls are marshaled or unmarshaled. 

Info identifies the registered interface using its runtime type information (RTTI). You can obtain the type information from an invokable interface by calling the TypeInfo function (delphi) or __delphirtti (C++). 

InvokeOption specifies a single invocation option to associate with the interface. 

InvokeOptions specifies a set of invocation options to associate with the interface.

Note: RegisterInvokeOptions adds the specified option or options to the set of invocation flags already registered for the interface. It does not remove any previously registered options.
 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!