This section details the functions and properties of the AMT Repository Module Object interface.
| Name | Type | Access | Description |
|---|---|---|---|
| Kind | LionObjectType | Read-only | Returns the kind of the Lion object. See the LionObjectType enumeration below for possible values. |
| Name | String | Read-only | Returns the name of the Lion object. |
| 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". |
| 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 ILionRevision Objects. | |
| Name | Enumeration |
|---|---|
|
LionObjectType Namespace: |
|
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);$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)