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


In This Topic
    TryGetLastIndex Method
    In This Topic
    Tries to get the index of the last item that passes the specified filter. If filter is null the index of the last item in the list is returned.
    Syntax
    'Declaration
     
    
    Public Function TryGetLastIndex( _
       ByVal filter As INFilter(Of T), _
       ByRef index As System.Integer _
    ) As System.Boolean
    'Usage
     
    
    Dim instance As NList(Of T)
    Dim filter As INFilter(Of T)
    Dim index As System.Integer
    Dim value As System.Boolean
     
    value = instance.TryGetLastIndex(filter, index)
    public System.bool TryGetLastIndex( 
       INFilter<T> filter,
       out System.int index
    )

    Parameters

    filter
    index
    Requirements

    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