Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio .NET
Reference
Keywords
F-O Keywords
 MyBase
This page is specific to
Microsoft Visual Studio 2003/.NET Framework 1.1

Other versions are also available for the following:
Visual Basic Language Reference
MyBase

The MyBase keyword behaves like an object variable referring to the base class of the current instance of a class. MyBase is commonly used to access base class members that are overridden or shadowed in a derived class. In particular, MyBase.New is used to explicitly call a base class constructor from a derived class constructor.

It is invalid to use MyBase to call MustOverride base methods.

See Also

Inheritance Basics | Me | MyClass | New

© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker