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, which encapsulates details about the package's versioning.
Usage
To access the Revision
property, you need to have an instance of the Sandbox.Package
class. This property is virtual, allowing derived classes to override its behavior if necessary.
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 version details
Console.WriteLine($"Current Revision: {currentRevision}");