You can design the following types of VB .NET delegates:
-
To create a delegate at the namespace level, create a class with the <<Delegate>> stereotype, and add an operation with the <<Delegate>> stereotype to this class and define a visibility for this operation. This visibility becomes the visibility of the delegate

...
Public Delegate Function ActionOccurred () As Object
...
-
To create a delegate in a class, module, or structure, you just have to create an operation with the <<Delegate>> stereotype. In the following example, class Worker is inner to module Utilities. Both contain internal delegates designed as operations with the <<Delegate>> stereotype

...
Public Module Utilities
Public Delegate Function NewWorker () As Object
Public Class Worker
Public Delegate Function WorkStarted () As Object
End Class
End Module
...