Chat Support
Loupe - Log - Monitor - Resolve
Gibraltar.Monitor Namespace / LogMessageCollection Class / Contains Method / Contains(LogMessage) Method
The object to locate in the collection.

In This Topic
    Contains(LogMessage) Method
    In This Topic
    Determines whether an element is in the collection.
    Syntax
    'Declaration
     
    
    Public Overloads Function Contains( _
       ByVal item As LogMessage _
    ) As Boolean
    public bool Contains( 
       LogMessage item
    )

    Parameters

    item
    The object to locate in the collection.

    Return Value

    true if the item is found in the collection; otherwise false.
    Remarks
    This method determines equality using the default equality comparer for the type of values in the list. It performs a linear search and therefore is an O(n) operation.
    Requirements

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

    See Also