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.

Note: This property is marked as obsolete. It is recommended to use the TypeName property to determine the type of the package.

Usage

To access the PackageType property, you need to have an instance of the Sandbox.Package class. However, since this property is obsolete, it is advisable to use the TypeName property instead for determining the package type.

Example

// Example of accessing the PackageType property (not recommended due to obsolescence)
Sandbox.Package myPackage = new Sandbox.Package();
var packageType = myPackage.PackageType; // Obsolete, use TypeName instead

// Recommended usage
var typeName = myPackage.TypeName;