LibUsbDotNet 2.2.8
GetList Method
Library Reference ► MonoLibUsb.Profile ► MonoUsbProfileList ► GetList()()()()
|
Gets a List<(Of <(<'T>)>)> of MonoUsbProfile instances.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public List<MonoUsbProfile> GetList()
Public Function GetList As List(Of MonoUsbProfile)
public: List<MonoUsbProfile^>^ GetList()
Return Value
A List<(Of <(<'T>)>)> of MonoUsbProfile instances.
Remarks
The MonoUsbProfileList uses an internal list that is locked when changes must be made. The GetList()()()() method returns a copy of this list that can be searched and modified as needed by the user.
The returned generic List<(Of <(<'T>)>)> contains many more functions for finding devices. It may be desirable to use these members, such as FindAll(Predicate<(Of <<'(T>)>>)) or ForEach(Action<(Of <<'(T>)>>)) to find a MonoUsbProfile instead of iterating through the MonoUsbProfileList one-by-one.