Click or drag to resize

IContentManagerGetCurrentTimeStamp 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 GetCurrentTimeStamp(
	ImagePane pane
)

Parameters

pane  ImagePane
Image pane.

Return Value

DateTime
The returned time stamp is in local time. 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.
Example
C#
try
{
    ImagePane pane = new ImagePane(1, 1);
    DateTime timestamp = contentManager.GetCurrentTimeStamp(pane);
    if (timestamp != DateTime.MinValue)
    {
        // do something
    }
}
catch (SdkException)
{
    // do something
}
See Also