Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DynamicScriptObject::TryInvoke Method (InvokeBinder^, array<Object^>^, Object^%)

.NET Framework (current version)
 

This API supports the product infrastructure and is not intended to be used directly from your code.

Calls the default script method.

Namespace:   System.Windows.Interop
Assembly:  PresentationFramework (in PresentationFramework.dll)

public:
virtual bool TryInvoke(
	InvokeBinder^ binder,
	array<Object^>^ args,
	[OutAttribute] Object^% result
) override

Parameters

binder
Type: System.Dynamic::InvokeBinder^

The binder provided by the call site.

args
Type: array<System::Object^>^

The arguments to pass to the default method.

result
Type: System::Object^%

The method result.

Return Value

Type: System::Boolean

Always return true.

Exception Condition
ArgumentNullException

binder is null.

MissingMethodException

The method does not exist.

The TryInvoke method throws an exception if the method does not exist.

.NET Framework
Available since 4.0
Return to top
Show:
© 2017 Microsoft