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 方法會拋出例外。

適用於