The Public
property of the Package
class indicates whether the package is publicly visible or hidden. This boolean property is used to determine the visibility status of a package within the Sandbox environment.
The Public
property of the Package
class indicates whether the package is publicly visible or hidden. This boolean property is used to determine the visibility status of a package within the Sandbox environment.
To check if a package is public, access the Public
property of a Package
instance. If the property returns true
, the package is public; otherwise, it is hidden.
// Example of checking if a package is public Package myPackage = new Package(); if (myPackage.Public) { // The package is public // Perform actions for public packages } else { // The package is hidden // Perform actions for hidden packages }