Export (0) Print
Expand All

NewLateBinding.LateCall Method

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,
	Object[] Arguments,
	string[] ArgumentNames,
	Type[] TypeArguments,
	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: System.Object[]

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

ArgumentNames
Type: System.String[]

An array of argument names.

TypeArguments
Type: System.Type[]

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

CopyBack
Type: 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.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

.NET for Windows Store apps

Supported in: Windows 8

.NET for Windows Phone apps

Supported in: Windows Phone 8.1

Windows Phone 8.1, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft