NewLateBinding.LateCall(Object, Type, String, Object[], String[], Type[], Boolean[], Boolean) 方法
定义
执行后期绑定方法或函数调用。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
参数
- 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[]
Boolean 值的数组,后期联编程序使用此数组与调用站点进行回归通信,该调用站点的变量匹配 ByRef 参数。An array of Boolean values that the late binder uses to communicate back to the call site which arguments match ByRef parameters. 每个 True 值均指示参数匹配,并指示应在完成对 LateCall 的调用后将其复制出来。Each True value indicates that the arguments matched and should be copied out after the call to LateCall is complete.
- IgnoreReturn
- Boolean
一个 Boolean 值,指示是否可以忽略返回值。A Boolean value indicating whether or not the return value can be ignored.
返回
调用对象的实例。An instance of the call object.
注解
类似于 CallByName。Similar to CallByName.