ILionObject
This section details the functions and properties of the AMT Repository Module Object interface.
Properties
| Name | Type | Access | Description |
| Kind | LionObjectType Object | Read only | Returns the kind of the Lion object. |
| Name | String | Read only | Returns the name of the Lion object. |
Functions
| Function name | Return type | Parameters |
Description | |
| Name |
Type |
|||
| GetRevision | ILionRevision Object | Revision | String | Locates the specified revision id in the object e.g. "1.2" or "1.2.1.3". Returns an ILionRevision Object, or null when the revision is not found. |
| GetRevisions | List of ILionRevision Objects |
Returns a list of revisions of this object as ILionRevision Objects. | ||
| GetRevisions2 | Array of ILionRevision Objects |
Returns an array of revisions of this object as ILionRevsion Objects. | ||
Enumerations
| Name | Type | Enumeration |
| LionObjectType Namespace: Asysco.Lion.Repository.Model |
Integer |
|
Example
C#
ILionObject report = app.GetLionObject("KOREP", LionObjectType.ReportUser);
foreach (ILionRevision rev in report.GetRevisions()) {
Log("Revision: " + rev.Revision);
}
ILionRevision rev2 = report.GetRevision("1.3");
Log("Single revision: " + rev2.Revision);
PowerShell
$O_Report = $O_App.GetLionObject("KOREP", 208)
foreach ($O_Rev in $O_Report.GetRevisions()) {
Write-Host("Revision: "
+ $O_Rev.Revision)
}
$O_Rev2 = $O_Report.GetRevision("1.3")
Write-Host("Single revision: " + $O_Rev2.Revision)
