Table Of Contents

Setting Access Restrictions for Class Methods

Last Modified: February 27, 2020

The access scope of a class method determines how you can use the method outside its class.

Complete the following steps to determine where you can use a class method.

  1. Open the Architecture view of the class.
  2. Select the method on the Member List.
  3. Select an access scope option from the pull-down menu in the Access scope column.
    Option Description
    Public Any VI or CDL in the project can access the method.
    Private Only members of the same class can access the method.
    Protected Any member of the same class or a child class can access the method.
    Community Any VI, CDL, or class member on the Friends list can access the method
  4. To apply the change, save the class.

Recently Viewed Topics