DynamicScriptObject.TryInvoke(InvokeBinder, Object[], Object) Metoda

Definicja

Wywołuje domyślną metodę skryptu.

Ten interfejs API obsługuje infrastrukturę produktu i nie jest przeznaczony do użycia bezpośrednio z poziomu kodu.

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

Parametry

binder
InvokeBinder

Binder dostarczony przez lokację wywołania.

args
Object[]

Argumenty do przekazania do metody domyślnej.

result
Object

Wynik metody.

Zwraca

Zawsze zwracaj wartość true.

Wyjątki

binder to null.

Metoda nie istnieje.

Uwagi

Metoda TryInvoke zgłasza wyjątek, jeśli metoda nie istnieje.

Dotyczy