Name
Event Statement
Synopsis
[accessmodifier
] [Shadows] EventeventName [(arglist)]
[Implementsinterfacename
.interfaceeventname
]
accessmodifier
optional; KeywordCan be one of
Public
,Private
,Protected
,Friend
, andProtected
Friend.
Shadows
optional; KeywordIndicates that the event shadows any programming elements of the same name in a base class.
eventName
required; String literalThe name of the event.
arglist
is optional and has the following syntax:
[ByVal | ByRef]
varname
[( )] [Astype
]ByVal
optional; KeywordThe argument is passed by value; that is, a local copy of the variable is assigned the value of the argument.
ByVal
is the default method of passing variables.
ByRef
optional; KeywordThe argument is passed by reference; that is, the local variable is simply a reference to the argument being passed. All changes made to the local variable are reflected in the calling argument.
varname
required; String literalThe name of the local variable containing either the reference or value of the argument.
type
optional; KeywordThe data type of the argument. It can be Byte, Boolean, Char, Short, Integer, Long, Single, Double, Decimal, Date, String, Object, or any user-defined structure, object type, or data type defined in the BCL.
Implements
interfacename
.interfaceeventname
optionalIndicates that the event implements a particular event named
interfaceeventname
in the interface namedinterfacename
.
Description
Defines a custom event that the object can raise at any time using
the RaiseEvent ...
Get VB.NET Language Pocket Reference 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.