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.

适用于

另请参阅