NewLateBinding.LateCall Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Executes a late-bound method or function call. This helper method is not meant to be called directly from your code.
public:
static System::Object ^ LateCall(System::Object ^ Instance, Type ^ Type, System::String ^ MemberName, cli::array <System::Object ^> ^ Arguments, cli::array <System::String ^> ^ ArgumentNames, cli::array <Type ^> ^ TypeArguments, cli::array <bool> ^ CopyBack, bool IgnoreReturn);
public static object LateCall (object Instance, Type Type, string MemberName, object[] Arguments, string[] ArgumentNames, Type[] TypeArguments, bool[] CopyBack, bool IgnoreReturn);
public static object? LateCall (object? Instance, Type? Type, string MemberName, object?[]? Arguments, string?[]? ArgumentNames, Type?[]? TypeArguments, bool[]? CopyBack, bool IgnoreReturn);
static member LateCall : obj * Type * string * obj[] * string[] * Type[] * bool[] * bool -> obj
Public Shared Function LateCall (Instance As Object, Type As Type, MemberName As String, Arguments As Object(), ArgumentNames As String(), TypeArguments As Type(), CopyBack As Boolean(), IgnoreReturn As Boolean) As Object
Parameters
- Instance
- Object
An instance of the call object exposing the property or method.
- Type
- Type
The type of the call object.
- MemberName
- String
The name of the property or method on the call object.
- Arguments
- Object[]
An array containing the arguments to be passed to the property or method being called.
- ArgumentNames
- String[]
An array of argument names.
- TypeArguments
- Type[]
An array of argument types; used only for generic calls to pass argument types.
- CopyBack
- 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
- Boolean
A Boolean
value indicating whether or not the return value can be ignored.
Returns
An instance of the call object.
Remarks
Similar to CallByName.