Name
Property Statement
Synopsis
[Default] [accessmodifier] [ReadOnly| WriteOnly] _ [ClassBehavior
] Propertyname
_ [(arglist
)] [Astype
] [Implementsinterfacemember
] Get [statements
] End Get Set [statements
] End Set End Property
Default
optional; KeywordSpecifies that the property is the default property. Must have both a Get and a Set block.
accessmodifier
optional; KeywordOne of the keywords
Public
,Private
,Protected
,Friend
, orProtected
Friend
.ReadOnly
optional; KeywordIndicates that the property is read-only. Must have only a Get block. (If you try to write a Set block, VB will generate a compiler error.)
WriteOnly
optional; KeywordIndicates that the property is write-only. Must have only a Set block. (If you try to write a Get block, VB will generate a compiler error.)
ClassBehavior
optional; KeywordOne of the following keywords:
Overloads
Indicates that more than one declaration of this function (with different argument signatures) exists.
Overrides
For derived classes, indicates that the function overrides the function by the same name (and argument signature) in the base class.
Overridable
Indicates that the function can be overridden in a derived class.
NotOverridable
Indicates that the function cannot be overridden in a derived class.
MustOverride
Indicates that the function must be overridden in a derived class.
Shadows
optional; KeywordIndicates that the property shadows any element of this same name in a base class.
Shared
Makes the function callable without creating an ...
Get VB.NET Language Pocket Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.