PowerTCP Mail for .NET
Contains Method
See Also  Send comments on this topic.
Dart.PowerTCP.Mail Namespace > ImapMessageCollection Class : Contains Method




value
The Object to locate in the collection. The element to locate can be a null reference (Nothing in Visual Basic).
Determines whether an element is in the collection.

Syntax

Visual Basic (Declaration) 
Public Overridable Function Contains( _
   ByVal value As ImapMessage _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As ImapMessageCollection
Dim value As ImapMessage
Dim value As Boolean
 
value = instance.Contains(value)
C# 
public virtual bool Contains( 
   ImapMessage value
)
Managed Extensions for C++ 
public: virtual bool Contains( 
   ImapMessage* value
) 
C++/CLI 
public:
virtual bool Contains( 
   ImapMessage^ value
) 

Parameters

value
The Object to locate in the collection. The element to locate can be a null reference (Nothing in Visual Basic).

Return Value

true if item is found in the collection; otherwise, false.

Remarks

This method performs a linear search; therefore, the average execution time is proportional to Count. That is, this method is an O(n) operation, where n is Count.

This method determines equality by calling Object.Equals.

Requirements

Target Platforms: Microsoft .NET Framework 2.0

See Also

Documentation Version 3.2
© 2010 Dart Communications. All Rights Reserved.