PowerTCP Mail for .NET
IndexOf(Mailbox) Method
See Also  Send comments on this topic.
Dart.PowerTCP.Mail Namespace > MailboxCollection Class > IndexOf Method : IndexOf(Mailbox) Method




value
The Object to locate in the collection.
Searches for the specified value and returns the zero-based index of the first occurrence within the entire collection.

Syntax

Visual Basic (Declaration) 
Public Overloads Function IndexOf( _
   ByVal value As Mailbox _
) As Integer
Visual Basic (Usage)Copy Code
Dim instance As MailboxCollection
Dim value As Mailbox
Dim value As Integer
 
value = instance.IndexOf(value)
C# 
public int IndexOf( 
   Mailbox value
)
Managed Extensions for C++ 
public: int IndexOf( 
   Mailbox* value
) 
C++/CLI 
public:
int IndexOf( 
   Mailbox^ value
) 

Parameters

value
The Object to locate in the collection.

Return Value

The zero-based index of the first occurrence of value within the entire collection, if found; otherwise, -1.

Remarks

The collection is searched forward starting at the first element and ending at the last element.

This method performs a linear search. On average, this is an O(n/2) operation, where n is Count. The longest search is an O(n) operation.

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.