The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.


The Private keyword confers private access on one or more declared programming elements. Private elements are accessible only from within their declaration context, including from members of any nested types, for example from within a nested procedure or from an assignment expression in a nested enumeration.

The Private keyword is used in these contexts:

Class Statement

Const Statement

Declare Statement

Delegate Statement

Dim Statement

Enum Statement

Event Statement

Function Statement

Interface Statement

Property Statement

Structure Statement

Sub Statement

See Also

Accessibility | Procedures | Structures: Your Own Data Types | Understanding Classes

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft