Name
Function Statement
Syntax
[ClassBehavior][AccessModifier]
Functionname
_ [(arglist
)] [Astype
][( )] [statements
] [name = expression
] [statements
] End Function
-
ClassBehavior
Use: Optional
Type: Keyword
One of the following keywords:
-
Overloads
Indicates that more than one declaration of this function exists (with different argument signatures). For more detail, see Chapter 3.
-
Overrides
For derived classes, indicates that the function overrides the function by the same name (and argument signature) in the base class. For more detail, see Chapter 3.
-
Overridable
Indicates that the function can be overridden in a derived class. For more detail, see Chapter 3.
-
NotOverridable
Indicates that the function cannot be overridden in a derived class. For more detail, see Chapter 3.
-
MustOverride
Indicates that the function must be overridden in a derived class. For more detail, see Chapter 3.
-
Shadows
In a derived class definition, indicates that calls to derived class members that are made through a base class ignore the shadowed implementation.
-
Shared
A shared function is callable without creating an object of the class. It is, in this strange sense, shared by all objects of the class. These are also called static functions.
-
AccessModifier
Use: Optional
Type: Keyword
One of the following keywords:
Public
,Private
,Protected
,Friend
,Protected
Friend
. The upcoming table describes the effects of the various access modifiers. Note that direct access refers to accessing the member without any ...
Get VB .NET Language in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.