Name
End→Statement
Syntax
End End Class End Enum End Function End Get End If End Interface End Module End Namespace End Property End Select End Set End Structure End Sub End SyncLock End Try End With End While
Description
Ends a procedure or a block of code
Rules at a Glance
The End statement is used as follows:
|
Statement |
Description |
|---|---|
|
|
Terminates program execution |
|
|
Marks the end of a class definition |
|
|
Marks the end of a series of enumerated constants |
|
|
Marks the end of a |
|
|
Marks the end of a Property Get definition |
|
|
Marks the end of an |
|
|
Marks the end of an interface definition |
|
|
Marks the end of a code module |
|
|
Markes the end of a namespace definition |
|
|
Marks the end of a |
|
|
Marks the end of a |
|
|
Marks the end of a Property Set definition |
|
|
Ends the definition of a structure or user-defined type |
|
|
Marks the end of a Sub procedure |
|
|
Terminates synchronization code |
|
|
Marks the end of a |
|
|
Marks the end of a |
|
|
Marks the end of a |
Programming Tips and Gotchas
When used alone, the End statement wraps calls to the private FileSystem.CloseAllFiles function, as well as to the System.Environment object’s ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access