Visual Basic 2005 Delegates

Delegates are type-safe reference types that provide similar functions to pointers in other languages. PowerDesigner models delegates as classes with a stereotype of <<Delegate>> with a single operation code-named "<signature>". The visibility, name, comment, flags and attributes are specified on the class object whereas the return-type and parameters are specified on the operation.

You can design the following types of VB .NET delegates:




...
Public Delegate Function ActionOccurred () As Object
...

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

For information about creating and working with classes, see Classes (OOM).