DynamicScriptObject.TryInvoke(InvokeBinder, Object[], Object) 方法

定义

调用默认的脚本方法。

此 API 支持产品基础结构,不能在代码中直接使用。

public:
 override bool TryInvoke(System::Dynamic::InvokeBinder ^ binder, cli::array <System::Object ^> ^ args, [Runtime::InteropServices::Out] System::Object ^ % result);
public override bool TryInvoke (System.Dynamic.InvokeBinder binder, object[] args, out object result);
override this.TryInvoke : System.Dynamic.InvokeBinder * obj[] * obj -> bool
Public Overrides Function TryInvoke (binder As InvokeBinder, args As Object(), ByRef result As Object) As Boolean

参数

binder
InvokeBinder

调用站点提供的联编程序。

args
Object[]

要传递给默认方法的参数。

result
Object

方法结果。

返回

Boolean

始终返回 true

例外

bindernull

方法不存在。

注解

如果方法不存在,该方法 TryInvoke 将引发异常。

适用于