Mentalis.org Security Library documentation

DistinguishedNameList.IndexOf Method 

Searches for the specified DistinguishedName and returns the zero-based index of the first occurrence within the entire DistinguishedNameList.

[Visual Basic]
Public Function IndexOf( _
   ByVal value As DistinguishedName _
) As Integer
[C#]
public int IndexOf(
   DistinguishedName value
);

Parameters

value
The DistinguishedName to locate in the DistinguishedNameList.

Return Value

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

Exceptions

Exception TypeCondition
ArgumentNullExceptionvalue is a null reference (Nothing in Visual Basic).

See Also

DistinguishedNameList Class | DistinguishedNameList Members | Org.Mentalis.Security.Certificates Namespace