Click or drag to resize

IDeviceManagerGetDevicesT Method

Get list of all devices of given type.

Namespace: Bosch.Vms.CameoSdk
Assembly: Bosch.Vms.CameoSdk (in Bosch.Vms.CameoSdk.dll) Version: 1.6.0.0
Syntax
C#
IEnumerable<T> GetDevices<T>()
where T : IDevice

Type Parameters

T
Any class or interface derived from IDevice.

Return Value

IEnumerableT
The returned list contains devices of type T, which are present in Logical tree and logged user has permission on.
Remarks
There is no reason to make this function asynchronous because the function is not CPU/Time consuming even in case of thousands of devices.
Example
C#
public IEnumerable<ICamera> GetCameras(ICameoSdk sdk)
{
    var manager = sdk.DeviceManager;
    //returns all cameras in BVMS
    return manager.GetDevices<ICamera>();
}
See Also