Description
The Revision
property provides information about the current revision or version of a package in the Sandbox environment. This property is part of the Sandbox.Package
class and implements the IRevision
interface. It is a virtual property, allowing derived classes to override its behavior if necessary.
Usage
To access the current revision information of a package, you can use the Revision
property. This property is useful for retrieving version details, which can be critical for ensuring compatibility and understanding the state of a package.
Example
// Example of accessing the Revision property
Sandbox.Package myPackage = new Sandbox.Package();
Sandbox.Package.IRevision currentRevision = myPackage.Revision;
// Use the currentRevision object to access revision-specific information
// For example, you might want to log the version number or check compatibility