System.Bindings.Helper.TBindings.CreateMethodScope
Delphi
class function CreateMethodScope(const MethodName: string; InvokableMethod: IInvokable): IScope; overload;
class function CreateMethodScope(AMethod: TArray<TPair<string, IInvokable>>): IScope; overload;
C++
__classmethod System::Bindings::Evalprotocol::_di_IScope __fastcall CreateMethodScope(const System::UnicodeString MethodName, System::Bindings::Evalprotocol::_di_IInvokable InvokableMethod)/* overload */;
__classmethod System::Bindings::Evalprotocol::_di_IScope __fastcall CreateMethodScope(System::DynamicArray<System::Generics::Collections::TPair__2<System::UnicodeString,System::Bindings::Evalprotocol::_di_IInvokable> > AMethod)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Bindings.Helper.pas System.Bindings.Helper.hpp |
System.Bindings.Helper | TBindings |
Description
Returns a scope capable of handling an invokable function represented by a method alias in a string expression.
The CreateMethodScope method returns a scope capable of handling an invokable function represented by a method alias in a string expression. There are two CreateMethodScope overloaded methods.
Parameter | Meaning |
MethodName
|
Method name or alias that is used in binding string expressions. |
InvokableMethod
|
Function that is used in binding string expressions. |
CreateMethodScope returns an input scope containing the invokable method that is used when the method alias is being looked up by the engine evaluator.
The second CreateMethodScope overloaded method creates and returns a scope with associations of type <method_name, IInvokable>
.