ICameraManagerProtectRecordings Method |  |
Protects the specified time-range of the recordings of a given camera against automatic deletion by video recording manager software.
Namespace: Bosch.Vms.SDKAssembly: Bosch.Vms.SDK (in Bosch.Vms.SDK.dll) Version: 1.9.0.0
Syntaxbool ProtectRecordings(
Camera camera,
DateTime from,
DateTime to
)
Parameters
- camera Camera
- The camera the recordings belong to.
- from DateTime
- Start of the time-range to protect. Converts the value of the current DateTime object to UTC if required.
The DateTime value is determined by the Kind property of the current DateTime object. If the Kind property is set to Undefined
then the current DateTime object is assumed to be a local time, and the conversion is performed as if Kind were Local.
- to DateTime
- End of the time-range to protect. Converts the value of the current DateTime object to UTC if required.
The DateTime value is determined by the Kind property of the current DateTime object. If the Kind property is set to Undefined
then the current DateTime object is assumed to be a local time, and the conversion is performed as if Kind were Local.
Return Value
Booleantrue if the operation has been finished successfully; otherwise, false.
Exceptions| Exception | Condition |
|---|
| SdkException | Throws an SdkException if parameter camera is null or absent in the configuration or not permitted to caller. |
| UnauthorizedAccessSdkException |
Thrown if operation is not permitted to caller.
|
Remarks
The recording management of every video recorder supported by BVMS starts to delete old recordings when the video storage of the
recorder gets full, in order to make room for new recordings.
Some types of video recorders allow protecting time-ranges from automatic deletion - for example VRM, DVR 5000.
The current implementation of this method supports only the protecting of recordings managed by a VRM.
For recordings made by other recorder types the method returns false.
See Also