NewLateBinding.LateSetComplex 方法

定義

執行晚期繫結屬性 Set 或欄位寫入呼叫。 這個 Helper 方法並不適合從您的程式碼直接呼叫。

public:
 static void LateSetComplex(System::Object ^ Instance, Type ^ Type, System::String ^ MemberName, cli::array <System::Object ^> ^ Arguments, cli::array <System::String ^> ^ ArgumentNames, cli::array <Type ^> ^ TypeArguments, bool OptimisticSet, bool RValueBase);
public static void LateSetComplex (object Instance, Type Type, string MemberName, object[] Arguments, string[] ArgumentNames, Type[] TypeArguments, bool OptimisticSet, bool RValueBase);
public static void LateSetComplex (object? Instance, Type? Type, string MemberName, object?[]? Arguments, string?[]? ArgumentNames, Type[]? TypeArguments, bool OptimisticSet, bool RValueBase);
static member LateSetComplex : obj * Type * string * obj[] * string[] * Type[] * bool * bool -> unit
Public Shared Sub LateSetComplex (Instance As Object, Type As Type, MemberName As String, Arguments As Object(), ArgumentNames As String(), TypeArguments As Type(), OptimisticSet As Boolean, RValueBase As Boolean)

參數

Instance
Object

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

Type
Type

呼叫物件的型別。

MemberName
String

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

Arguments
Object[]

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

ArgumentNames
String[]

引數名稱的陣列。

TypeArguments
Type[]

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

OptimisticSet
Boolean

Boolean 值,用來決定設定作業是否會運作。 當您相信屬性或欄位中已設定中繼值時,請設為 True,否則為 False

RValueBase
Boolean

Boolean 值,指定晚期參考的基底參考為 RValue。 當晚期參考的基底參考為 True 時,若設為 RValue,對於實值型別之 RValues 欄位的晚期指派,您可以產生執行階段例外狀況。 否則,請設為 False

備註

LateSet類似於 ,這個方法與複雜表達式搭配使用 (,例如括弧中的運算式) 。

適用於