Visual Basic 2005 Methods

PowerDesigner models Visual Basic 2005 methods as operations.

For information about creating and working with operations, see Operations (OOM).

Method Properties

Method property sheets contain all the standard operation tabs along with the VB tab, the properties of which are listed below:

Property

Description

Compilation Unit

Specifies the compilation unit in which the method will be stored. This field is only available if the parent type is a partial type (allocated to more than one compilation unit).

Overridable

Specifies that the method can be overridden.

Overrides

Specifies that the method overrides another.

Handles

Specifies the name of the event that the method handles.

Shadows

Specifies the form of shadowing. You can choose between:
  • Shadows

  • Overloads

Library Name

Specifies the library DLL name.

Alias Name

Specifies the alias name.

Character Set

Specifies the character set of the external method.

Constructors and Destructors

You design VB .NET constructors and destructors by clicking the Add Default Constructor/Destructor button in the list of operations of a class. This automatically creates a constructor called New with the Constructor stereotype, and a destructor called Finalize with the Destructor stereotype. Both constructor and destructor are grayed out in the list, which means you cannot modify their definition, but you can still remove them from the list.