Type.ReflectedType Property

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

Gets the class object that was used to obtain this member.

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


Public Overrides ReadOnly Property ReflectedType As Type
public override Type ReflectedType { get; }

Property Value

Type: System..::.Type
The Type object through which this Type object was obtained.


For Type objects, the value of this property is the same as the value of the DeclaringType property.


This example displays the reflected type of a nested class.

Imports System.Reflection

Public MustInherit Class Example

   Public MustInherit Class MyClassB

   End Class

   Public Shared Sub Demo(ByVal outputBlock As System.Windows.Controls.TextBlock)
      outputBlock.Text += String.Format("Reflected type of MyClassB is {0}", _
         GetType(MyClassB).ReflectedType) + vbCrLf
      'Outputs Example, the enclosing class.
   End Sub
End Class
using System;
using System.Reflection;

public abstract class Example
   public abstract class MyClassB


   public static void Demo(System.Windows.Controls.TextBlock outputBlock)
      outputBlock.Text += String.Format("Reflected type of MyClassB is {0}",
          typeof(MyClassB).ReflectedType) + "\n";
      //Outputs Example, the enclosing type.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0


Windows Phone

See Also


Type Class

System Namespace