IReflect IReflect IReflect IReflect Interface

定義

IDispatch 介面交互操作。Interoperates with the IDispatch interface.

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

備註

IReflect介面用來與交互操作IDispatch 介面The IReflect interface is used to interoperate with the IDispatch interface. IReflect 定義的子集Type反映方法。IReflect defines a subset of the Type reflection methods. 實作這個介面可讓類型以自訂其行為,當從 COM 做為存取物件時IDispatch物件。Implementing this interface enables a type to customize its behavior when the object is being accessed from COM as an IDispatch object. ExpandoToDispatchExMarshaler類別可以用來封送處理該物件會實作IReflectIExpando為 COMIDispatch物件,反之亦然。The ExpandoToDispatchExMarshaler class can be used to marshal an object that implements IReflect or IExpando as a COM IDispatch object, and vice versa.

屬性

UnderlyingSystemType UnderlyingSystemType UnderlyingSystemType UnderlyingSystemType

取得表示 IReflect 物件的基礎型別。Gets the underlying type that represents the IReflect object.

方法

GetField(String, BindingFlags) GetField(String, BindingFlags) GetField(String, BindingFlags) GetField(String, BindingFlags)

傳回對應至指定之欄位和繫結端旗標的 FieldInfo 物件。Returns the FieldInfo object that corresponds to the specified field and binding flag.

GetFields(BindingFlags) GetFields(BindingFlags) GetFields(BindingFlags) GetFields(BindingFlags)

傳回 FieldInfo 物件陣列,對應至目前類別的所有欄位。Returns an array of FieldInfo objects that correspond to all fields of the current class.

GetMember(String, BindingFlags) GetMember(String, BindingFlags) GetMember(String, BindingFlags) GetMember(String, BindingFlags)

擷取 MemberInfo 物件陣列,對應於所有公用成員或所有符合指定名稱的成員。Retrieves an array of MemberInfo objects corresponding to all public members or to all members that match a specified name.

GetMembers(BindingFlags) GetMembers(BindingFlags) GetMembers(BindingFlags) GetMembers(BindingFlags)

擷取 MemberInfo 物件陣列,對應至所有公用成員或所有目前類別的成員。Retrieves an array of MemberInfo objects that correspond either to all public members or to all members of the current class.

GetMethod(String, BindingFlags) GetMethod(String, BindingFlags) GetMethod(String, BindingFlags) GetMethod(String, BindingFlags)

擷取 MethodInfo 物件,對應至所指定搜尋條件約束下的指定方法。Retrieves a MethodInfo object that corresponds to a specified method under specified search constraints.

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

使用 MethodInfo 陣列從多載方法中選擇,擷取對應於指定方法的 Type 物件。Retrieves a MethodInfo object corresponding to a specified method, using a Type array to choose from among overloaded methods.

GetMethods(BindingFlags) GetMethods(BindingFlags) GetMethods(BindingFlags) GetMethods(BindingFlags)

使用所有公用方法或所有目前類別的方法,擷取 MethodInfo 物件陣列。Retrieves an array of MethodInfo objects with all public methods or all methods of the current class.

GetProperties(BindingFlags) GetProperties(BindingFlags) GetProperties(BindingFlags) GetProperties(BindingFlags)

擷取 PropertyInfo 物件陣列,對應於所有公用屬性或所有目前類別的屬性。Retrieves an array of PropertyInfo objects corresponding to all public properties or to all properties of the current class.

GetProperty(String, BindingFlags) GetProperty(String, BindingFlags) GetProperty(String, BindingFlags) GetProperty(String, BindingFlags)

擷取 PropertyInfo 物件,對應於指定搜尋條件約束下的指定屬性。Retrieves a PropertyInfo object corresponding to a specified property under specified search constraints.

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

擷取 PropertyInfo 物件,對應至具有指定之搜尋條件約束的指定屬性。Retrieves a PropertyInfo object that corresponds to a specified property with specified search constraints.

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

叫用指定成員。Invokes a specified member.

適用於

另請參閱