NAPlatformGetDevicesT Method (FuncNADevice, Boolean, Boolean) |
NewAer
Thread-safe device query based on type and 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<T> GetDevices<T>(
Func<NADevice, bool> query = null,
bool sort = true
)
where T : NADevice
Public Function GetDevices(Of T As NADevice) (
Optional query As Func(Of NADevice, Boolean) = Nothing,
Optional sort As Boolean = true
) As IEnumerable(Of T)
public:
generic<typename T>
where T : NADevice
IEnumerable<T>^ 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<'T> when 'T : 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
Type Parameters
- T
[Missing <typeparam name="T"/> documentation for "M:NewAer.SDK.NAPlatform.GetDevices``1(System.Func{NewAer.SDK.NADevice,System.Boolean},System.Boolean)"]
Return Value
Type:
IEnumerableTA list of devices based on type and predicate
See Also