IDeviceManagerGetDevicesT Method |  |
Get list of all devices of given type.
Namespace: Bosch.Vms.CameoSdkAssembly: Bosch.Vms.CameoSdk (in Bosch.Vms.CameoSdk.dll) Version: 1.6.0.0
SyntaxIEnumerable<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.
Examplepublic IEnumerable<ICamera> GetCameras(ICameoSdk sdk)
{
var manager = sdk.DeviceManager;
return manager.GetDevices<ICamera>();
}
See Also