DescriptionThe Private keyword is used to set the access level for various types and type members. By including this keyword, the associated type or member can only be accessed within its declaration context. For instance, members within a class that use the Private keyword can only be accessed within that class's code. The Private keyword can be used with the following statements:
By default, fields and constants declared within classes have Private access. See AlsoFor the statements listed above, see the related entries elsewhere in this chapter for usage information. For information on using the Private keyword as a statement, see the entry for the Dim Statement. Friend Keyword, Protected Keyword, Public Keyword |