You design a VB .NET variable using an attribute in PowerDesigner.
The following table summarizes the different types of VB .NET variables and attributes supported in PowerDesigner:
VB .NET variable |
PowerDesigner equivalent |
---|---|
ReadOnly variable |
Attribute with Read-only changeability |
Const variable |
Attribute with Frozen changeability |
Shared variable |
Attribute with Static property selected |
Shadowing variable |
Extended attribute Shadowing set to Shadows or Overloads |
WithEvents variable |
Attribute with withEvents stereotype |
Overrides variable |
Extended attribute Overrides set to True |
New variable |
Extended attribute AsNew set to True |
Data Type: You define the data type of a variable using the attribute Data Type property
Initial Value: You define the initial value of a variable using the attribute Initial Value property
Shadowing: To define a shadowing by name set the Shadowing extended attribute to Shadows. To define a shadowing by name and signature set the Shadowing extended attribute to Overloads. See Method for more details on shadowing