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

book_4_sparkGenerated
code_blocksInput

Description

The PackageType property of the Package class indicates the kind of package it is. This property is marked as obsolete, and it is recommended to use the TypeName property instead to determine the type of the package.

Usage

To determine the type of a package, use the TypeName property instead of PackageType as the latter is obsolete.

Example

// Example of accessing the PackageType property (not recommended due to obsolescence)
var package = new Package();
var type = package.PackageType; // Obsolete

// Recommended usage
var typeName = package.TypeName; // Use this instead