BaseType Property
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Gets the type from which the current Type directly inherits.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Syntax
'Declaration
Public MustOverride ReadOnly Property BaseType As Type
public abstract Type BaseType { get; }
public:
virtual property Type^ BaseType {
Type^ get () abstract;
}
abstract BaseType : Type with get
abstract function get BaseType () : Type
Property Value
Type: System. . :: . .Type
The Type from which the current Type directly inherits, or nullNothingnullptrunita null reference (Nothing in Visual Basic) if the current Type represents the Object class or an interface.
Remarks
The base type is the type from which the current type directly inherits. Object is the only type that does not have a base type, therefore null Nothing nullptr unit a null reference (Nothing in Visual Basic) is returned as the base type of Object.
Interfaces inherit from zero or more base interfaces; therefore, this property returns null Nothing nullptr unit a null reference (Nothing in Visual Basic) if the Type object represents an interface. The base interfaces can be determined with GetInterfaces or FindInterfaces.
If the current Type represents a constructed generic type, the base type reflects the generic arguments. For example, consider the following declarations:
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.