IMethodInterceptorIntercept Method |
Version 63.0.0
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: 63.0.0.0 (63.0.0.0)
Syntax Object Intercept(
Func<Object> method,
string methodName
)
Object^ Intercept(
Func<Object^>^ method,
String^ methodName
)
Parameters
- method
- Type: SystemFuncObject
A Func that represents the method to be called - methodName
- Type: SystemString
Name of the method to be called
Return Value
Type:
ObjectThe method result
Examples
object IMethodInterceptor.Intercept(Func<object> method, string methodName)
{
object result = method();
Debug.WriteLine("Called " + methodName);
return result;
}
See Also