Protected Friend (Visual Basic)
Protected Friend keyword combination is a member access modifier. It confers both Friend access and Protected access on the declared elements, so they are accessible from anywhere in the same assembly, from their own class, and from derived classes. You can specify
Protected Friend only on members of classes; you cannot apply
Protected Friend to members of a structure because structures cannot be inherited.
Declaration Context. You can use
Protected Friend only at the class level. This means the declaration context for a
Protected element must be a class, and cannot be a source file, namespace, interface, module, structure, or procedure.