Freigeben über


DirectoryAttributeCollection.Insert(Int32, DirectoryAttribute) Methode

Definition

Die Insert(Int32, DirectoryAttribute)-Methode fügt das angegebene DirectoryAttribute-Objekt am angegebenen index in die DirectoryAttributeCollection ein.

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 in diese Auflistung einzufügende DirectoryAttribute-Objekt.

Ausnahmen

value ist ein NULL-Verweis (Nothing in Visual Basic), oder value gibt eine andere Änderungsoperation als "Add" an.

index ist kleiner als 0 (null), oder index ist größer als die Anzahl der Elemente im DirectoryAttributeCollection-Objekt.

Gilt für: