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

In This Topic
    Contains Method (MetricDefinitionCollection)
    In This Topic
    Determines whether an element is in the collection.
    Syntax
    'Declaration
     
    
    Public Function Contains( _
       ByVal item As IMetricDefinition _
    ) As Boolean
    public bool Contains( 
       IMetricDefinition 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