DirectoryAttributeCollection.Insert(Int32, DirectoryAttribute) Метод

Определение

Метод Insert(Int32, DirectoryAttribute) вставляет указанный объект DirectoryAttribute в коллекцию DirectoryAttributeCollection по указанному индексу index.

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)

Параметры

index
Int32

Индекс (с нуля) места вставки объекта DirectoryAttribute в коллекцию.

value
DirectoryAttribute

Объект DirectoryAttribute, который необходимо вставить в коллекцию.

Исключения

value является пустой ссылкой (Nothing в Visual Basic), или же value задает операцию изменения, отличную от Add.

Значение параметра index меньше нуля, или index больше числа элементов в объекте DirectoryAttributeCollection.

Применяется к