Sandbox.Package/Screenshot[] Screenshots { get; set; }

robot_2Generated
code_blocksInput

Description

The Screenshots property of the Package class provides access to a collection of screenshots associated with a specific package. This property returns an array of Screenshot objects, each representing an individual screenshot related to the package.

Usage

To access the screenshots of a package, you can use the Screenshots property. This property is read-only and provides an array of Screenshot objects. You can iterate over this array to access individual screenshots.

Example

// Example of accessing the Screenshots property

// Assume 'package' is an instance of Sandbox.Package
Sandbox.Package package = GetPackage(); // Method to retrieve a package

// Access the screenshots
Sandbox.Package.Screenshot[] screenshots = package.Screenshots;

// Iterate over the screenshots
foreach (var screenshot in screenshots)
{
    // Process each screenshot
    DisplayScreenshot(screenshot);
}