DirectoryServerCollection.AddRange(DirectoryServer[]) Método

Definição

Acrescenta o conteúdo da matriz DirectoryServer especificada à coleção.Appends the contents of the specified DirectoryServer array to this collection.

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

Parâmetros

servers
DirectoryServer[]

A matriz DirectoryServer que contém os objetos a acrescentar a esta coleção.The DirectoryServer array that contains the objects to append to this collection.

Exceções

Uma chamada ao serviço de diretório subjacente resultou em um erro.A call to the underlying directory service resulted in an error.

O objeto já existe na coleção.The object already exists in the collection.

servers é null.servers is null.

O objeto DirectoryServer ainda não foi salvo no repositório do Active Directory Domain Services.The DirectoryServer object has not yet been saved in the Active Directory Domain Services store.

Aplica-se a

Confira também