Type.IsSubclassOf Method (Type)
Assembly: mscorlib (in mscorlib.dll)
[<ComVisibleAttribute(true)>] abstract IsSubclassOf : c:Type -> bool [<ComVisibleAttribute(true)>] override IsSubclassOf : c:Type -> bool
The type to compare with the current type.
Return ValueType: System.Boolean
true if the current Type derives from c; otherwise, false. This method also returns false if c and the current Type are equal.
You can call themethod to determine any of the following:
Whether one class derives from another.
The IsAssignableFrom method for that purpose, as the following example shows.method cannot be used to determine whether an interface derives from another interface, or whether a class implements an interface. Use the
Except when used with interfaces, IsAssignableFrom. That is, if t1.IsSubclassOf(t2) is true, then t2.IsAssignableFrom(t1) is also true.is the converse of
This method can be overridden by a derived class.
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0