IReflect Interface
TOC
Collapse the table of content
Expand the table of content

IReflect Interface

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Interoperates with the IDispatch interface.

Namespace:  System.Reflection
Assembly:  mscorlib (in mscorlib.dll)

public interface IReflect

The IReflect type exposes the following members.

  NameDescription
Public propertyUnderlyingSystemTypeGets the underlying type that represents the IReflect object.
Top

  NameDescription
Public methodGetFieldReturns the FieldInfo object that corresponds to the specified field and binding flag.
Public methodGetFieldsReturns an array of FieldInfo objects that correspond to all fields of the current class.
Public methodGetMemberRetrieves an array of MemberInfo objects corresponding to all public members or to all members that match a specified name.
Public methodGetMembersRetrieves an array of MemberInfo objects that correspond either to all public members or to all members of the current class.
Public methodGetMethod(String, BindingFlags)Retrieves a MethodInfo object that corresponds to a specified method under specified search constraints.
Public methodGetMethod(String, BindingFlags, Binder, Type[], ParameterModifier[])Retrieves a MethodInfo object corresponding to a specified method, using a Type array to choose from among overloaded methods.
Public methodGetMethodsRetrieves an array of MethodInfo objects with all public methods or all methods of the current class.
Public methodGetPropertiesRetrieves an array of PropertyInfo objects corresponding to all public properties or to all properties of the current class.
Public methodGetProperty(String, BindingFlags)Retrieves a PropertyInfo object corresponding to a specified property under specified search constraints.
Public methodGetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[])Retrieves a PropertyInfo object that corresponds to a specified property with specified search constraints.
Public methodInvokeMemberInvokes a specified member.
Top

The IReflect interface is used to interoperate with the IDispatch interface. IReflect defines a subset of the Type reflection methods. Implementing this interface enables a type to customize its behavior when the object is being accessed from COM as an IDispatch object.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft