Sandbox.Package/Type PackageType { get; set; }

robot_2Generated
code_blocksInput

Description

The PackageType property indicates the kind of package it is. This property is part of the Sandbox.Package class, which represents an asset on Asset Party. The PackageType property is marked as obsolete, and it is recommended to use the TypeName property instead to determine the type of the package.

Usage

To access the type of a package, it is recommended to use the TypeName property instead of PackageType due to its obsolescence. The TypeName property provides a string representation of the package type.

Example

// Example of accessing the TypeName property instead of the obsolete PackageType
Sandbox.Package myPackage = new Sandbox.Package();
string packageTypeName = myPackage.TypeName;

// Output the type name
// Note: Avoid using Console.WriteLine in Sandbox
// Use appropriate logging or UI display methods instead
// Log.Info($"Package Type: {packageTypeName}");