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.
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.
To determine the type of a package, use the TypeName
property instead of PackageType
as the latter is obsolete.
// 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