bool Archived { get; set; }

robot_2Generated
code_blocksInput

Description

The Archived property indicates whether a package is archived. An archived package is typically one that is no longer actively maintained or updated, and may not be available for download or use.

Usage

To check if a package is archived, access the Archived property of a Package instance. This property returns a bool value, where true indicates the package is archived, and false indicates it is not.

Example

// Example of checking if a package is archived
Package myPackage = GetPackage(); // Assume GetPackage() retrieves a Package instance

if (myPackage.Archived)
{
    // Handle the case where the package is archived
    Console.WriteLine("This package is archived and may not be available.");
}
else
{
    // Handle the case where the package is not archived
    Console.WriteLine("This package is active and available.");
}