Click or drag to resize

IContentManagerGetCurrentTimeStampUtc Method

Gets the time stamp of the displayed content. Only the image panes that have a video content are supported.

Namespace: Bosch.Vms.SDK
Assembly: Bosch.Vms.SDK (in Bosch.Vms.SDK.dll) Version: 1.9.0.0
Syntax
C#
DateTime GetCurrentTimeStampUtc(
	ImagePane pane
)

Parameters

pane  ImagePane
Image pane.

Return Value

DateTime
The returned time stamp is in UTC. If the time stamp information is not available, then MinValue will be returned.
Exceptions
ExceptionCondition
SdkExceptionIn case of an internal error the sdk exception will be thrown.
Remarks
Use this method in environment with multiple time zones.
Example
C#
try
{
    ImagePane pane = new ImagePane(1, 1);
    DateTime timestamp = contentManager.GetCurrentTimeStampUtc(pane);
    if (timestamp != DateTime.MinValue)
    {
        // do something
    }
}
catch (SdkException)
{
    // do something
}
See Also