Scope

All .NET types and their members have scope, which represents the level of visibility and accessibility that a type or its members can have. For example, the public scope enables members of classes or structure within a class library to be reachable by other classes or assemblies. On the other hand, the private scope can prevent members of classes or structures to be reached from outside the class or structure in which they are defined. You assign scope to your objects or members via qualifiers, which are special keywords or combination of keywords that establish how an object or its members can be reached from outside the object. Table 7.1 summarizes scope levels in Visual Basic 2010.

Table 7.1 Scope Levels in Visual Basic 2010

The ...

Get Visual Basic 2010 Unleashed now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.