Nevron Open Vision Documentation
Nevron.Nov.DataStructures Namespace / NList<T> Class / TryGetFirst Method

In This Topic
    TryGetFirst Method
    In This Topic
    Tries to get the first item that passes the specified filter. If filter is null the first item in the list is returned.
    Public Function TryGetFirst( _
       ByVal filter As INFilter(Of T), _
       ByRef item As T _
    ) As System.Boolean
    Dim instance As NList(Of T)
    Dim filter As INFilter(Of T)
    Dim item As T
    Dim value As System.Boolean
    value = instance.TryGetFirst(filter, item)
    public System.bool TryGetFirst( 
       INFilter<T> filter,
       out T item



    Target Platforms: Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also