Mentalis.org Security Library documentation

DistinguishedName.IndexOf Method 

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

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

Parameters

value
The NameAttribute to locate in the list.

Return Value

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

See Also

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