Assembly: mscorlib (in mscorlib.dll)
[<ComVisibleAttribute(true)>] abstract IsSubclassOf : c:Type -> bool [<ComVisibleAttribute(true)>] override IsSubclassOf : c:Type -> bool
- Type: System.Type
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 the method to determine any of the following:
Whether one class derives from another.
The method cannot be used to determine whether an interface derives from another interface, or whether a class implements an interface. Use the IsAssignableFrom method for that purpose, as the following example shows.
Except when used with interfaces, is the converse of IsAssignableFrom. That is, if t1.IsSubclassOf(t2) is true, then t2.IsAssignableFrom(t1) is also true.
This method can be overridden by a derived class.
.NET FrameworkSupported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1
.NET Framework Client ProfileSupported in: 4, 3.5 SP1
XNA FrameworkSupported in: 3.0, 2.0, 1.0
Portable Class LibrarySupported in: Portable Class Library
Supported in: Windows Phone 8.1
Supported in: Windows Phone Silverlight 8.1
Supported in: Windows Phone Silverlight 8