NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

MemberInfo.ReflectedType

Retrieves the class object that was used to obtain this instance of MemberInfo.

[Visual Basic]
MustOverride Public ReadOnly Property ReflectedType As Type
[C#]
public Type ReflectedType {abstract get;}
[C++]
public: __property virtual Type* get_ReflectedType() = 0;
[JScript]
public abstract function get ReflectedType() : Type;

Property Value

Read-only.

The Type object through which this MemberInfo object was obtained.

Remarks

The ReflectedType property retrieves the Type object that was used to obtain this instance of MemberInfo. A MemberInfo object represents a method on a particular class or interface.

In order to obtain a MethodInfo object:

Example [C#]

[C#]

class Mymemberinfo
{
   public static int Main()
   {
      Console.WriteLine ("\nReflection.MemberInfo");
      
      //Get the Type and
MemberInfo
      Type MyType =
Type.GetType("System.Reflection.PropertyInfo");
      MemberInfo[] Mymemberinfoarray = MyType.GetMembers();
 
      //Display the ReflectedType
      Console.Write("\nMymemberinfoarray ReflectedType is
{0}",
         Mymemberinfoarray[0].ReflectedType);
      return 0;
   }
}
Produces the following output
Reflection.MemberInfo
 
Mymemberinfoarray ReflectedType is System.Reflection.PropertyInfo
[To be supplied]

See Also

MemberInfo Class | MemberInfo Members | System.Reflection Namespace