IReflect 介面

定義

IDispatch 介面交互操作。

public interface class IReflect
public interface IReflect
[System.Runtime.InteropServices.Guid("AFBF15E5-C37C-11d2-B88E-00A0C9B471B8")]
public interface IReflect
[System.Runtime.InteropServices.Guid("AFBF15E5-C37C-11d2-B88E-00A0C9B471B8")]
[System.Runtime.InteropServices.ComVisible(true)]
public interface IReflect
type IReflect = interface
[<System.Runtime.InteropServices.Guid("AFBF15E5-C37C-11d2-B88E-00A0C9B471B8")>]
type IReflect = interface
[<System.Runtime.InteropServices.Guid("AFBF15E5-C37C-11d2-B88E-00A0C9B471B8")>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type IReflect = interface
Public Interface IReflect
衍生
屬性

備註

介面 IReflect 是用來與 IDispatch 介面交互操作。 IReflect 定義反映方法的 Type 子集。 實作此介面可讓類型在從 COM 存取物件做為 IDispatch 物件時自訂其行為。 類別 ExpandoToDispatchExMarshaler 可用來封送處理實作 IReflectIExpando 做為 COM IDispatch 物件的物件,反之亦然。

屬性

UnderlyingSystemType

取得表示 IReflect 物件的基礎型別。

方法

GetField(String, BindingFlags)

傳回對應至指定之欄位和繫結端旗標的 FieldInfo 物件。

GetFields(BindingFlags)

傳回 FieldInfo 物件陣列,對應至目前類別的所有欄位。

GetMember(String, BindingFlags)

擷取 MemberInfo 物件陣列,對應於所有公用成員或所有符合指定名稱的成員。

GetMembers(BindingFlags)

擷取 MemberInfo 物件陣列,對應至所有公用成員或所有目前類別的成員。

GetMethod(String, BindingFlags)

擷取 MethodInfo 物件,對應至所指定搜尋條件約束下的指定方法。

GetMethod(String, BindingFlags, Binder, Type[], ParameterModifier[])

使用 MethodInfo 陣列從多載方法中選擇,擷取對應於指定方法的 Type 物件。

GetMethods(BindingFlags)

使用所有公用方法或所有目前類別的方法,擷取 MethodInfo 物件陣列。

GetProperties(BindingFlags)

擷取 PropertyInfo 物件陣列,對應於所有公用屬性或所有目前類別的屬性。

GetProperty(String, BindingFlags)

擷取 PropertyInfo 物件,對應於指定搜尋條件約束下的指定屬性。

GetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[])

擷取 PropertyInfo 物件,對應至具有指定之搜尋條件約束的指定屬性。

InvokeMember(String, BindingFlags, Binder, Object, Object[], ParameterModifier[], CultureInfo, String[])

叫用指定成員。

適用於

另請參閱