Partager via


IReflect Interface

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Interoperates with the IDispatch interface.

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

Syntax

'Declaration
<ComVisibleAttribute(True)> _
<GuidAttribute("AFBF15E5-C37C-11d2-B88E-00A0C9B471B8")> _
Public Interface IReflect
[ComVisibleAttribute(true)]
[GuidAttribute("AFBF15E5-C37C-11d2-B88E-00A0C9B471B8")]
public interface IReflect

The IReflect type exposes the following members.

Properties

  Name Description
Public propertySupported by Silverlight for Windows PhoneSupported by Xbox 360 UnderlyingSystemType Gets the underlying type that represents the IReflect object.

Top

Methods

  Name Description
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetField Returns the FieldInfo object that corresponds to the specified field and binding flag.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetFields Returns an array of FieldInfo objects that correspond to all fields of the current class.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetMember Retrieves an array of MemberInfo objects corresponding to all public members or to all members that match a specified name.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetMembers Retrieves an array of MemberInfo objects that correspond either to all public members or to all members of the current class.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetMethod(String, BindingFlags) Retrieves a MethodInfo object that corresponds to a specified method under specified search constraints.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetMethod(String, BindingFlags, Binder, array<Type[], array<ParameterModifier[]) Retrieves a MethodInfo object corresponding to a specified method, using a Type array to choose from among overloaded methods.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetMethods Retrieves an array of MethodInfo objects with all public methods or all methods of the current class.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetProperties Retrieves an array of PropertyInfo objects corresponding to all public properties or to all properties of the current class.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetProperty(String, BindingFlags) Retrieves a PropertyInfo object corresponding to a specified property under specified search constraints.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 GetProperty(String, BindingFlags, Binder, Type, array<Type[], array<ParameterModifier[]) Retrieves a PropertyInfo object that corresponds to a specified property with specified search constraints.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 InvokeMember Invokes a specified member.

Top

Remarks

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.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

See Also

Reference