A member access expression results in the value of a variable or a constant. A member access expression consists of either a data member, property, constant or enumeration value name, or an optional expression, followed by an optional period and an identifier.
If a data member or property name is specified, the member must be shared. If an expression is given, the identifier must specify a data member, property, constant or enumeration value in the declaration space of the expression's type. If a period is specified with no expression, the expression from the immediately containing With
statement is assumed. If there is no containing With
statement, an error occurs. If no period or expression is specified, an implicit Me.
is assumed. If Me
is not legal in the expression context, an error occurs.
The value of a data member, constant or enumeration value is the value of the member. The value of a property is obtained by invoking the getter of the property. If the property is write-only or the property has indexers and the expression is not part of an index expression, an error occurs.
Note that if the member being accessed is a shared member, any expression on the left hand side of a period will not be evaluated (because it is unnecessary).
.
] IdentifierOrKeyword |