PowerTCP Mail for .NET
IndexOf(Certificate) Method
See Also  Send comments on this topic.
Dart.PowerTCP.Mail Namespace > CertificateStore Class > IndexOf Method : IndexOf(Certificate) 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 Certificate _
) As Integer
Visual Basic (Usage)Copy Code
Dim instance As CertificateStore
Dim value As Certificate
Dim value As Integer
 
value = instance.IndexOf(value)
C# 
public int IndexOf( 
   Certificate value
)
Managed Extensions for C++ 
public: int IndexOf( 
   Certificate* value
) 
C++/CLI 
public:
int IndexOf( 
   Certificate^ 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.