Jump to content

Access scope: Difference between revisions

From LabVIEW Wiki
Add new page
 
mNo edit summary
 
Line 27: Line 27:
* [http://zone.ni.com/reference/en-XX/help/371361R-01/lvscript/vi_get_library_access_scope/ Get Library Access Scope Method]
* [http://zone.ni.com/reference/en-XX/help/371361R-01/lvscript/vi_get_library_access_scope/ Get Library Access Scope Method]


{{stub}}
[[Category:Object-Oriented Programming]]
[[Category:Library]]

Latest revision as of 18:44, 12 May 2020

Access scope defines the accessibility of items in libraries and classes. Every item in a library or class can be set to either public, protected (classes only), community or private scope. Virtual folders automatically apply their access scope to all contained items.

Public scope

Public items are accessible by anyone. This is the default access scope in LabVIEW.

Protected scope

Items in protected scope are shown with a yellow key () on the file icon. Protected scope is only available for classes. Methods in protected scope are accessible by the owning class and its descendants.

Community scope

Items in community scope are shown with a blue key () on the file icon. They are accessible by the owning library, its descendants (for classes) and direct friends of the owning library.

Private scope

Items in private scope are shown with a red key () on the file icon and only accessible by the owning library.

See also

External links