DirectoryControlCollection.AddRange Method

Definition

Adds a DirectoryControlCollection object to the current collection.

Overloads

AddRange(DirectoryControl[])

The AddRange(DirectoryControl[]) method adds an array of DirectoryControl objects to the collection.

AddRange(DirectoryControlCollection)

The AddRange(DirectoryControlCollection) method adds a DirectoryControlCollection object to the current collection.

AddRange(DirectoryControl[])

Source:
DirectoryControl.cs
Source:
DirectoryControl.cs

The AddRange(DirectoryControl[]) method adds an array of DirectoryControl objects to the collection.

public void AddRange (System.DirectoryServices.Protocols.DirectoryControl[] controls);

Parameters

controls
DirectoryControl[]

An array of DirectoryControl objects to add to the collection.

Exceptions

controls is a null reference (Nothing in Visual Basic).

A member of the array is a null reference (Nothing in Visual Basic).

Applies to

.NET 9 (package-provided) și alte versiuni
Produs Versiuni
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)

AddRange(DirectoryControlCollection)

Source:
DirectoryControl.cs
Source:
DirectoryControl.cs

The AddRange(DirectoryControlCollection) method adds a DirectoryControlCollection object to the current collection.

public void AddRange (System.DirectoryServices.Protocols.DirectoryControlCollection controlCollection);

Parameters

controlCollection
DirectoryControlCollection

The DirectoryControlCollection object to add to this collection.

Exceptions

controlCollection is a null reference (Nothing in Visual Basic).

Applies to

.NET 9 (package-provided) și alte versiuni
Produs Versiuni
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)