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

方法結果。

傳回

一律傳回 true

例外狀況

bindernull

此方法並不存在。

備註

如果方法不存在,方法 TryInvoke 會擲回例外狀況。

適用於