NewLateBinding.LateCall 方法

定義

執行晚期繫結方法或函式呼叫。 這個 Helper 方法並不適合從您的程式碼直接呼叫。

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

公開屬性或方法的呼叫物件執行個體。

Type
Type

呼叫物件的型別。

MemberName
String

在呼叫物件上的屬性或方法名稱。

Arguments
Object[]

陣列,其中包含要傳遞給呼叫的屬性或方法之引數。

ArgumentNames
String[]

引數名稱的陣列。

TypeArguments
Type[]

引數型別的陣列;只用於傳遞引數型別的泛型呼叫。

CopyBack
Boolean[]

Boolean 值的陣列,晚期繫結器用來向呼叫站台傳達,哪些引數符合 ByRef 參數。 每個 True 值表示符合的引數,並且在 LateCall 呼叫完成之後應複製出這些引數。

IgnoreReturn
Boolean

Boolean 值,指出是否可以忽略傳回值。

傳回

呼叫物件的執行個體。

備註

類似於 CallByName

適用於