DirectoryControlCollection.AddRange 方法

定义

DirectoryControlCollection 对象添加到当前集合中。Adds a DirectoryControlCollection object to the current collection.

重载

AddRange(DirectoryControl[])

AddRange(DirectoryControl[]) 方法可向集合中添加 DirectoryControl 对象数组。The AddRange(DirectoryControl[]) method adds an array of DirectoryControl objects to the collection.

AddRange(DirectoryControlCollection)

AddRange(DirectoryControlCollection) 方法可向当前集合添加一个 DirectoryControlCollection 对象。The AddRange(DirectoryControlCollection) method adds a DirectoryControlCollection object to the current collection.

AddRange(DirectoryControl[])

AddRange(DirectoryControl[]) 方法可向集合中添加 DirectoryControl 对象数组。The AddRange(DirectoryControl[]) method adds an array of DirectoryControl objects to the collection.

public:
 void AddRange(cli::array <System::DirectoryServices::Protocols::DirectoryControl ^> ^ controls);
public void AddRange (System.DirectoryServices.Protocols.DirectoryControl[] controls);
member this.AddRange : System.DirectoryServices.Protocols.DirectoryControl[] -> unit
Public Sub AddRange (controls As DirectoryControl())

参数

controls
DirectoryControl[]

要添加到集合中的 DirectoryControl 对象的数组。An array of DirectoryControl objects to add to the collection.

例外

controls 为空引用(在 Visual Basic 中为 Nothing)。controls is a null reference (Nothing in Visual Basic).

数组的一个成员为 null 引用(在 Visual Basic 中为 Nothing)。A member of the array is a null reference (Nothing in Visual Basic).

AddRange(DirectoryControlCollection)

AddRange(DirectoryControlCollection) 方法可向当前集合添加一个 DirectoryControlCollection 对象。The AddRange(DirectoryControlCollection) method adds a DirectoryControlCollection object to the current collection.

public:
 void AddRange(System::DirectoryServices::Protocols::DirectoryControlCollection ^ controlCollection);
public void AddRange (System.DirectoryServices.Protocols.DirectoryControlCollection controlCollection);
member this.AddRange : System.DirectoryServices.Protocols.DirectoryControlCollection -> unit
Public Sub AddRange (controlCollection As DirectoryControlCollection)

参数

controlCollection
DirectoryControlCollection

要添加到该集合中的 DirectoryControlCollection 对象。The DirectoryControlCollection object to add to this collection.

例外

controlCollection 为空引用(在 Visual Basic 中为 Nothing)。controlCollection is a null reference (Nothing in Visual Basic).

适用于