XMLGenerationTime Property
General info
Label |
XML Generation Time |
Description |
Shows the generation time of the recent message definition XML file. |
Data type |
DateTime |
Type |
Regular |
Code |
12313 |
Symbolic name |
MODEL_PROP_XMLGENERATIONTIME |
Lua access code |
syslib.model.properties.XMLGenerationTime |
Available since |
1.66 |
- Parent properties
Attributes
| Name | Tooltip |
|---|---|
| PROP_VISIBLE | The property is visible in DataStudio and can be read by the inmation APIs. |
| PROP_VOLATILE | The property exists during runtime of the service only and is not saved to the image. |
Examples
Read from or write to the XMLGenerationTime property.
-- Read from the XMLGenerationTime
syslib.getvalue("<OBJECT FULL PATH>.MSIMsgDProperties.XMLGenerationTime")
-- Write to the XMLGenerationTime
syslib.setvalue("<OBJECT FULL PATH>.MSIMsgDProperties.XMLGenerationTime", syslib.currenttime())
TcpConfig tcpcfg = new TcpConfig() { HostNameOrIp = "localhost", Port = 6512 };
SecurityCredentials sc = new SecurityCredentials() { ProfileName = "<username>", Password = "<password>" };
StatelessInterface sli = new StatelessInterface(tcpcfg);
// Read from the XMLGenerationTime
Result result = sli.ReadValue(sc, new ReadItem("<OBJECT FULL PATH>.MSIMsgDProperties.XMLGenerationTime"));
// Write to the XMLGenerationTime
Result result = sli.WriteValue(sc, new WriteItem(DateTime.Now, "<OBJECT FULL PATH>.MSIMsgDProperties.XMLGenerationTime"));