DirectoryAttributeCollection.Insert(Int32, DirectoryAttribute) Methode

Definition

Mit der Insert(Int32, DirectoryAttribute) Methode wird das angegebene DirectoryAttribute Objekt in das DirectoryAttributeCollection angegebene indexObjekt eingefügt.

public:
 void Insert(int index, System::DirectoryServices::Protocols::DirectoryAttribute ^ value);
public void Insert(int index, System.DirectoryServices.Protocols.DirectoryAttribute value);
member this.Insert : int * System.DirectoryServices.Protocols.DirectoryAttribute -> unit
Public Sub Insert (index As Integer, value As DirectoryAttribute)

Parameter

index
Int32

Der nullbasierte Indexpunkt in der Auflistung, an dem das DirectoryAttribute Objekt eingefügt werden soll.

value
DirectoryAttribute

Das DirectoryAttribute Objekt, das in die Auflistung eingefügt werden soll.

Ausnahmen

value ist ein Nullverweis (Nothing in Visual Basic) oder value gibt einen anderen Änderungsvorgang als "Hinzufügen" an.

index ist kleiner als 0 oder index größer als die Anzahl der Elemente im DirectoryAttributeCollection Objekt.

Gilt für: