NAPlatformGetDevices Method (FuncNADevice, Boolean, Boolean) |
NewAer
Thread-safe device query based on predicate
If you need to know when data in this list changes you need to register
a callback on EventHandler 'UpdatedDevice'
Namespace: NewAer.SDKAssembly: NewAer (in NewAer.dll) Version: 5.1.16.3 (5.1.16.3)
Syntaxpublic IEnumerable<NADevice> GetDevices(
Func<NADevice, bool> query = null,
bool sort = true
)
Public Function GetDevices (
Optional query As Func(Of NADevice, Boolean) = Nothing,
Optional sort As Boolean = true
) As IEnumerable(Of NADevice)
public:
IEnumerable<NADevice^>^ GetDevices(
Func<NADevice^, bool>^ query = nullptr,
bool sort = true
)
member GetDevices :
?query : Func<NADevice, bool> *
?sort : bool
(* Defaults:
let _query = defaultArg query null
let _sort = defaultArg sort true
*)
-> IEnumerable<NADevice>
Parameters
- query (Optional)
- Type: SystemFuncNADevice, Boolean
optional predicate used to query the device list.
If no query is supplied, the entire list is returned
- sort (Optional)
- Type: SystemBoolean
should the populated list be sorted
Return Value
Type:
IEnumerableNADeviceA list of devices based on predicate
See Also