IMethodInterceptorIntercept Method |
Version 130.1.90
Called before the method is invokved. You are now responsible for evaluating
the function and returning the result.
Namespace: CefSharp.ModelBindingAssembly: CefSharp (in CefSharp.dll) Version: 129.0.110.0 (129.0.110.0)
Syntax Object Intercept(
Func<Object[], Object> method,
Object[] parameters,
string methodName
)
Object^ Intercept(
Func<array<Object^>^, Object^>^ method,
array<Object^>^ parameters,
String^ methodName
)
Parameters
- method FuncObject, Object
- A Func that represents the method to be called
- parameters Object
- paramaters to be passed to method
- methodName String
- Name of the method to be called
Return Value
ObjectThe method result
Example
object IMethodInterceptor.Intercept(Func<object[], object> method, object[] parameters, string methodName)
{
object result = method(parameters);
Debug.WriteLine("Called " + methodName);
return result;
}
See Also