int Referenced { get; set; }

robot_2Generated
code_blocksInput

Description

The Referenced property of the Package class indicates the number of other packages that reference this package. This count is an approximate value and provides insight into the package's usage and popularity within the ecosystem.

Usage

To access the Referenced property, you need an instance of the Package class. This property is read-only and returns an integer value representing the number of references.

Example

// Assuming 'package' is an instance of Sandbox.Package
int referenceCount = package.Referenced;

// Output the number of references
// Note: Avoid using Console.WriteLine in Sandbox
// Instead, use appropriate UI elements or logging mechanisms
// Example: Log.Info($"This package is referenced by {referenceCount} other packages.");