Property Maximum
- Namespace
- Skyline.DataMiner.Automation
- Assembly
- SLNetTypes.dll
Maximum
Gets or sets the maximum timestamp.
public DateTime? Maximum { get; set; }
Property Value
- DateTime?
The maximum allowed timestamp. If
null
, no upper limit is enforced.
Examples
var timeComponent = new UIBlockDefinition
{
Type = UIBlockType.Time,
ConfigOptions = new AutomationDateTimeUpDownOptions()
{
Maximum = new DateTime(2025, 5, 15, 20, 30, 0)
},
DestVar = "TimeComponent"
};
uib.AppendBlock(timeComponent);
Remarks
This setting can be applied via the AutomationDateTimeUpDownOptions, AutomationDateTimePickerOptions, and AutomationTimePickerOptions when the Type is set to Time.
Default: DateTime.MaxValue
.
note
Available from DataMiner 10.5.9/10.6.0 onwards (RN 43014). A DateTimeKind will be taken into account on the DateTime of the Maximum. This can be set using SpecifyKind(DateTime, DateTimeKind) :
- Unspecified: Based on the client's local time. This is the default behavior. This is also the behavior prior to 10.5.9/10.6.0 regardless of DateTimeKind.
- Local: Based on the server's local time, then adjusted to the client's local time.
- Utc: Interpreted as UTC, then adjusted to the client's local time. Using UTC is recommended to have full consistency regardless of the server and client time zone.