Mentalis.org Security Library documentation

DistinguishedNameList.Insert Method 

Inserts an element into the DistinguishedNameList at the specified index.

[Visual Basic]
Public Sub Insert( _
   ByVal index As Integer, _
   ByVal value As DistinguishedName _
)
[C#]
public void Insert(
   int index,
   DistinguishedName value
);

Parameters

index
The zero-based index at which value should be inserted.
value
The DistinguishedName to insert.

Exceptions

Exception TypeCondition
ArgumentNullExceptionvalue is a null reference (Nothing in Visual Basic).
ArgumentOutOfRangeExceptionindex is less than zero -or- index is greater than Count.
NotSupportedExceptionThe DistinguishedNameList is read-only -or- the DistinguishedNameList has a fixed size.

See Also

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