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.

NewLateBinding::LateCall Method (Object^, Type^, String^, array<Object^>^, array<String^>^, array<Type^>^, array<Boolean>^, Boolean)

 

Executes a late-bound method or function call. This helper method is not meant to be called directly from your code.

Namespace:   Microsoft.VisualBasic.CompilerServices
Assembly:  Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)

public:
static Object^ LateCall(
	Object^ Instance,
	Type^ Type,
	String^ MemberName,
	array<Object^>^ Arguments,
	array<String^>^ ArgumentNames,
	array<Type^>^ TypeArguments,
	array<bool>^ CopyBack,
	bool IgnoreReturn
)

Parameters

Instance
Type: System::Object^

An instance of the call object exposing the property or method.

Type
Type: System::Type^

The type of the call object.

MemberName
Type: System::String^

The name of the property or method on the call object.

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

An array containing the arguments to be passed to the property or method being called.

ArgumentNames
Type: array<System::String^>^

An array of argument names.

TypeArguments
Type: array<System::Type^>^

An array of argument types; used only for generic calls to pass argument types.

CopyBack
Type: array<System::Boolean>^

An array of Boolean values that the late binder uses to communicate back to the call site which arguments match ByRef parameters. Each True value indicates that the arguments matched and should be copied out after the call to LateCall is complete.

IgnoreReturn
Type: System::Boolean

A Boolean value indicating whether or not the return value can be ignored.

Return Value

Type: System::Object^

An instance of the call object.

Similar to CallByName.

Universal Windows Platform
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone
Available since 8.1
Return to top
Show:
© 2017 Microsoft